aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/dotty-example/src/Main.scala4
-rw-r--r--stage2/plugins/Dotty.scala4
2 files changed, 8 insertions, 0 deletions
diff --git a/examples/dotty-example/src/Main.scala b/examples/dotty-example/src/Main.scala
index 411527a..1963b51 100644
--- a/examples/dotty-example/src/Main.scala
+++ b/examples/dotty-example/src/Main.scala
@@ -1,6 +1,10 @@
object Main extends Foo("Hello Dotty - trait parameters, yay"){
def main(args: Array[String]) = {
println(hello)
+
+ // Sanity check the classpath: this won't run if the dotty jar is not present.
+ val x: Int => Int = z => z
+ x(1)
}
}
diff --git a/stage2/plugins/Dotty.scala b/stage2/plugins/Dotty.scala
index 6bf910a..ef6246f 100644
--- a/stage2/plugins/Dotty.scala
+++ b/stage2/plugins/Dotty.scala
@@ -19,6 +19,10 @@ trait Dotty extends BaseBuild{
dottyOptions = dottyOptions, dottyVersion = dottyVersion
)
}
+
+ override def dependencies = Resolver(mavenCentral).bind(
+ ScalaDependency( "org.scala-lang.modules", "scala-java8-compat", "0.8.0-RC7" )
+ )
}
class DottyLib(logger: Logger){