Bump tests to 2.12

This commit is contained in:
Eugene Yokota 2018-09-30 04:14:40 -04:00
parent 2afff9571b
commit 94e18992b5
28 changed files with 24 additions and 55 deletions

View File

@ -1,4 +1,4 @@
scalaVersion in ThisBuild := "2.11.8"
ThisBuild / scalaVersion := "2.12.7"
lazy val dep = project

View File

@ -1,3 +0,0 @@
trait Foo
trait BarA
trait BarB

View File

@ -1,6 +0,0 @@
import scala.util.continuations._
class Use {
val a = new Baz
def bar: (Foo with BarA) @cpsParam[Unit, Unit] = a.foo
}

View File

@ -1,4 +0,0 @@
scalaVersion := "2.10.6"
autoCompilerPlugins := true
libraryDependencies += compilerPlugin("org.scala-lang.plugins" % "continuations" % scalaVersion.value)
scalacOptions += "-P:continuations:enable"

View File

@ -1,5 +0,0 @@
import scala.util.continuations._
class Baz {
def foo = shiftUnit[Foo with BarA, Unit, Unit](null)
}

View File

@ -1,5 +0,0 @@
import scala.util.continuations._
class Baz {
def foo = shiftUnit[Foo with BarB, Unit, Unit](null)
}

View File

@ -1,10 +0,0 @@
# Compile code with a type (Foo with BarA) @cpsParam...
# The spec says only simple types can be annotated, but scalac allows any type.
$ copy-file changes/Def1.scala Def.scala
> compile
# To ensure it was properly processed, change it to (Foo with BarB) @cpsParam...
# This should invalidate Use.scala, which expects it to be BarA and so compilation should fail.
$ delete Def.scala
$ copy-file changes/Def2.scala Def.scala
-> compile

View File

@ -1,7 +1,3 @@
# A.scala needs B.scala, it won't be in source list
> ++2.11.4!
-> compile
# A.scala needs B.scala, it would be in source list
> ++2.10.4!
> ++2.12.7!
> compile

View File

@ -1,8 +1,9 @@
val paradiseVersion = "2.0.1"
ThisBuild / scalaVersion := "2.12.7"
val paradiseVersion = "2.1.1"
val commonSettings = Seq(
version := "1.0.0",
scalacOptions ++= Seq(""),
scalaVersion := "2.11.4",
resolvers += Resolver.sonatypeRepo("snapshots"),
resolvers += Resolver.sonatypeRepo("releases"),
addCompilerPlugin("org.scalamacros" % "paradise" % paradiseVersion cross CrossVersion.full)

View File

@ -1,5 +1,6 @@
ThisBuild / scalaVersion := "2.12.7"
val defaultSettings = Seq(
scalaVersion := "2.10.6",
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value
)

View File

@ -1,4 +1,4 @@
package macro
package macros
object Client {
Provider.printTree(Provider.printTree(Foo.str))

View File

@ -1,4 +1,4 @@
package macro
package macros
object Foo {
def str: String = "abc"

View File

@ -1,3 +1,3 @@
package macro
package macros
object Foo {
}

View File

@ -1,4 +1,4 @@
package macro
package macros
import scala.language.experimental.macros
import scala.reflect.macros._

View File

@ -1,3 +1,5 @@
ThisBuild / scalaVersion := "2.12.7"
val defaultSettings = Seq(
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value
)

View File

@ -1,5 +1,6 @@
ThisBuild / scalaVersion := "2.12.7"
val defaultSettings = Seq(
scalaVersion := "2.10.6",
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value
)

View File

@ -1,4 +1,4 @@
package macro
package macros
object Client {
Provider.printTree(Foo.str)

View File

@ -1,4 +1,4 @@
package macro
package macros
object Foo {
def str: String = "abc"

View File

@ -1,3 +1,3 @@
package macro
package macros
object Foo {
}

View File

@ -1,4 +1,4 @@
package macro
package macros
import scala.language.experimental.macros
import scala.reflect.macros._

View File

@ -1,5 +1,6 @@
ThisBuild / scalaVersion := "2.12.7"
val defaultSettings = Seq(
scalaVersion := "2.10.6",
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value
)

View File

@ -1,4 +1,4 @@
package macro
package macros
object Client {
Provider.tree(0)

View File

@ -1,4 +1,4 @@
package macro
package macros
import scala.language.experimental.macros
import scala.reflect.macros._

View File

@ -1,4 +1,4 @@
package macro
package macros
import scala.language.experimental.macros
import scala.reflect.macros._