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 44 - sbt ++$TRAVIS_SCALA_VERSION 'set concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)' clean update compile test
55 # TODO: -Dbuild.publish.user=${SONATYPE_USER} -Dbuild.publish.password=${SONATYPE_PASS} $(bash project/release_on_tag.sh)
66scala :
7- - 2.11.0-SNAPSHOT
7+ - 2.11.0
88jdk :
99 - openjdk6
1010 # - openjdk7
Original file line number Diff line number Diff line change @@ -8,8 +8,11 @@ lazy val commonSettings = scalaModuleSettings ++ Seq(
88 repoName := " scala-continuations" ,
99 organization := " org.scala-lang.plugins" ,
1010 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" )
1316)
1417
1518lazy 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
66import scala .annotation ._
77import scala .collection .Seq
88import scala .collection .generic .CanBuildFrom
9- import scala .language .{ implicitConversions }
9+ import scala .language .{ implicitConversions , higherKinds }
1010import scala .util .continuations ._
1111import scala .util .control .Exception
1212
@@ -403,9 +403,9 @@ class Suspendable {
403403 def test4 [A ](x : List [A ]): A @ suspendable = x match { case List (x) => x }
404404
405405 @ Test def t1821 {
406- assertEquals((), reset(test1()))
406+ assertEquals((), reset(test1(() )))
407407 assertEquals((), reset(test2(List (()))))
408- assertEquals((), reset(test3()))
408+ assertEquals((), reset(test3(() )))
409409 assertEquals((), reset(test4(List (()))))
410410 }
411411}
@@ -716,12 +716,12 @@ class HigherOrder {
716716 reset {
717717 f(element)
718718 if (super .decrementAndGet() == 0 ) {
719- continue()
719+ continue(() )
720720 }
721721 }
722722 }
723723 if (super .decrementAndGet() == 0 ) {
724- continue()
724+ continue(() )
725725 }
726726 }
727727 })
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ trait CPSUtils {
3535 lazy val MarkerCPSAdaptMinus = rootMirror.getRequiredClass(" scala.util.continuations.cpsMinus" )
3636
3737 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" ) )
3939
4040 lazy val MethShiftUnit = definitions.getMember(ModCPS , cpsNames.shiftUnit)
4141 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
395395 debuglog(" cps type conversion (expected: " + cpsR.get + " ): " + expr)
396396
397397 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" )
399399
400400 try {
401401 val Some ((a, b)) = cpsR
@@ -446,7 +446,7 @@ abstract class SelectiveANFTransform extends PluginComponent with Transform with
446446 // all is well
447447
448448 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" )
450450 expr modifyType removeAllCPSAnnotations
451451 }
452452
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