This repository was archived by the owner on Jun 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +15
-12
lines changed
library/src/test/scala/scala/tools/selectivecps
plugin/src/main/scala/scala/tools/selectivecps Expand file tree Collapse file tree 6 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 4
4
- sbt ++$TRAVIS_SCALA_VERSION 'set concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)' clean update compile test
5
5
# TODO: -Dbuild.publish.user=${SONATYPE_USER} -Dbuild.publish.password=${SONATYPE_PASS} $(bash project/release_on_tag.sh)
6
6
scala :
7
- - 2.11.0-SNAPSHOT
7
+ - 2.11.0
8
8
jdk :
9
9
- openjdk6
10
10
# - openjdk7
Original file line number Diff line number Diff line change @@ -8,8 +8,11 @@ lazy val commonSettings = scalaModuleSettings ++ Seq(
8
8
repoName := " scala-continuations" ,
9
9
organization := " org.scala-lang.plugins" ,
10
10
version := " 1.0.1-SNAPSHOT" ,
11
- scalaVersion := " 2.11.1" ,
12
- snapshotScalaBinaryVersion := " 2.11.1"
11
+ scalaVersion := " 2.11.2" ,
12
+ snapshotScalaBinaryVersion := " 2.11.2" ,
13
+ scalacOptions ++= Seq (
14
+ " -deprecation" ,
15
+ " -feature" )
13
16
)
14
17
15
18
lazy val root = project.in( file(" ." ) ).settings( publishArtifact := false ).aggregate(plugin, library).settings(commonSettings : _* )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import org.junit.Assert.assertEquals
6
6
import scala .annotation ._
7
7
import scala .collection .Seq
8
8
import scala .collection .generic .CanBuildFrom
9
- import scala .language .{ implicitConversions }
9
+ import scala .language .{ implicitConversions , higherKinds }
10
10
import scala .util .continuations ._
11
11
import scala .util .control .Exception
12
12
@@ -403,9 +403,9 @@ class Suspendable {
403
403
def test4 [A ](x : List [A ]): A @ suspendable = x match { case List (x) => x }
404
404
405
405
@ Test def t1821 {
406
- assertEquals((), reset(test1()))
406
+ assertEquals((), reset(test1(() )))
407
407
assertEquals((), reset(test2(List (()))))
408
- assertEquals((), reset(test3()))
408
+ assertEquals((), reset(test3(() )))
409
409
assertEquals((), reset(test4(List (()))))
410
410
}
411
411
}
@@ -716,12 +716,12 @@ class HigherOrder {
716
716
reset {
717
717
f(element)
718
718
if (super .decrementAndGet() == 0 ) {
719
- continue()
719
+ continue(() )
720
720
}
721
721
}
722
722
}
723
723
if (super .decrementAndGet() == 0 ) {
724
- continue()
724
+ continue(() )
725
725
}
726
726
}
727
727
})
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ trait CPSUtils {
35
35
lazy val MarkerCPSAdaptMinus = rootMirror.getRequiredClass(" scala.util.continuations.cpsMinus" )
36
36
37
37
lazy val Context = rootMirror.getRequiredClass(" scala.util.continuations.ControlContext" )
38
- lazy val ModCPS = rootMirror.getPackage(" scala.util.continuations" )
38
+ lazy val ModCPS = rootMirror.getPackage(TermName ( " scala.util.continuations" ) )
39
39
40
40
lazy val MethShiftUnit = definitions.getMember(ModCPS , cpsNames.shiftUnit)
41
41
lazy val MethShiftUnit0 = definitions.getMember(ModCPS , cpsNames.shiftUnit0)
Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ abstract class SelectiveANFTransform extends PluginComponent with Transform with
395
395
debuglog(" cps type conversion (expected: " + cpsR.get + " ): " + expr)
396
396
397
397
if (! hasPlusMarker(expr.tpe))
398
- unit .warning(tree.pos, " expression " + tree + " is cps-transformed unexpectedly" )
398
+ reporter .warning(tree.pos, " expression " + tree + " is cps-transformed unexpectedly" )
399
399
400
400
try {
401
401
val Some ((a, b)) = cpsR
@@ -446,7 +446,7 @@ abstract class SelectiveANFTransform extends PluginComponent with Transform with
446
446
// all is well
447
447
448
448
if (hasPlusMarker(expr.tpe)) {
449
- unit .warning(tree.pos, " expression " + expr + " of type " + expr.tpe + " is not expected to have a cps type" )
449
+ reporter .warning(tree.pos, " expression " + expr + " of type " + expr.tpe + " is not expected to have a cps type" )
450
450
expr modifyType removeAllCPSAnnotations
451
451
}
452
452
Original file line number Diff line number Diff line change 1
- sbt.version =0.13.5
1
+ sbt.version =0.13.6
You can’t perform that action at this time.
0 commit comments