mirror of https://github.com/sbt/sbt.git
Bump tests to 2.12
This commit is contained in:
parent
2afff9571b
commit
94e18992b5
|
|
@ -1,4 +1,4 @@
|
||||||
scalaVersion in ThisBuild := "2.11.8"
|
ThisBuild / scalaVersion := "2.12.7"
|
||||||
|
|
||||||
lazy val dep = project
|
lazy val dep = project
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
trait Foo
|
|
||||||
trait BarA
|
|
||||||
trait BarB
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
import scala.util.continuations._
|
|
||||||
|
|
||||||
class Use {
|
|
||||||
val a = new Baz
|
|
||||||
def bar: (Foo with BarA) @cpsParam[Unit, Unit] = a.foo
|
|
||||||
}
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
scalaVersion := "2.10.6"
|
|
||||||
autoCompilerPlugins := true
|
|
||||||
libraryDependencies += compilerPlugin("org.scala-lang.plugins" % "continuations" % scalaVersion.value)
|
|
||||||
scalacOptions += "-P:continuations:enable"
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
import scala.util.continuations._
|
|
||||||
|
|
||||||
class Baz {
|
|
||||||
def foo = shiftUnit[Foo with BarA, Unit, Unit](null)
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
import scala.util.continuations._
|
|
||||||
|
|
||||||
class Baz {
|
|
||||||
def foo = shiftUnit[Foo with BarB, Unit, Unit](null)
|
|
||||||
}
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -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
|
# A.scala needs B.scala, it would be in source list
|
||||||
> ++2.10.4!
|
> ++2.12.7!
|
||||||
> compile
|
> compile
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
val paradiseVersion = "2.0.1"
|
ThisBuild / scalaVersion := "2.12.7"
|
||||||
|
|
||||||
|
val paradiseVersion = "2.1.1"
|
||||||
val commonSettings = Seq(
|
val commonSettings = Seq(
|
||||||
version := "1.0.0",
|
version := "1.0.0",
|
||||||
scalacOptions ++= Seq(""),
|
scalacOptions ++= Seq(""),
|
||||||
scalaVersion := "2.11.4",
|
|
||||||
resolvers += Resolver.sonatypeRepo("snapshots"),
|
resolvers += Resolver.sonatypeRepo("snapshots"),
|
||||||
resolvers += Resolver.sonatypeRepo("releases"),
|
resolvers += Resolver.sonatypeRepo("releases"),
|
||||||
addCompilerPlugin("org.scalamacros" % "paradise" % paradiseVersion cross CrossVersion.full)
|
addCompilerPlugin("org.scalamacros" % "paradise" % paradiseVersion cross CrossVersion.full)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
|
ThisBuild / scalaVersion := "2.12.7"
|
||||||
|
|
||||||
val defaultSettings = Seq(
|
val defaultSettings = Seq(
|
||||||
scalaVersion := "2.10.6",
|
|
||||||
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value
|
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package macro
|
package macros
|
||||||
|
|
||||||
object Client {
|
object Client {
|
||||||
Provider.printTree(Provider.printTree(Foo.str))
|
Provider.printTree(Provider.printTree(Foo.str))
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package macro
|
package macros
|
||||||
|
|
||||||
object Foo {
|
object Foo {
|
||||||
def str: String = "abc"
|
def str: String = "abc"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
package macro
|
package macros
|
||||||
object Foo {
|
object Foo {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package macro
|
package macros
|
||||||
import scala.language.experimental.macros
|
import scala.language.experimental.macros
|
||||||
import scala.reflect.macros._
|
import scala.reflect.macros._
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
ThisBuild / scalaVersion := "2.12.7"
|
||||||
|
|
||||||
val defaultSettings = Seq(
|
val defaultSettings = Seq(
|
||||||
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value
|
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
|
ThisBuild / scalaVersion := "2.12.7"
|
||||||
|
|
||||||
val defaultSettings = Seq(
|
val defaultSettings = Seq(
|
||||||
scalaVersion := "2.10.6",
|
|
||||||
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value
|
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package macro
|
package macros
|
||||||
|
|
||||||
object Client {
|
object Client {
|
||||||
Provider.printTree(Foo.str)
|
Provider.printTree(Foo.str)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package macro
|
package macros
|
||||||
|
|
||||||
object Foo {
|
object Foo {
|
||||||
def str: String = "abc"
|
def str: String = "abc"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
package macro
|
package macros
|
||||||
object Foo {
|
object Foo {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package macro
|
package macros
|
||||||
import scala.language.experimental.macros
|
import scala.language.experimental.macros
|
||||||
import scala.reflect.macros._
|
import scala.reflect.macros._
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
|
ThisBuild / scalaVersion := "2.12.7"
|
||||||
|
|
||||||
val defaultSettings = Seq(
|
val defaultSettings = Seq(
|
||||||
scalaVersion := "2.10.6",
|
|
||||||
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value
|
libraryDependencies += scalaVersion("org.scala-lang" % "scala-reflect" % _ ).value
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package macro
|
package macros
|
||||||
|
|
||||||
object Client {
|
object Client {
|
||||||
Provider.tree(0)
|
Provider.tree(0)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package macro
|
package macros
|
||||||
import scala.language.experimental.macros
|
import scala.language.experimental.macros
|
||||||
import scala.reflect.macros._
|
import scala.reflect.macros._
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
package macro
|
package macros
|
||||||
import scala.language.experimental.macros
|
import scala.language.experimental.macros
|
||||||
import scala.reflect.macros._
|
import scala.reflect.macros._
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue