From cfa41097812e1d80ef536790fd1a130f82935ae8 Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Wed, 28 Sep 2016 08:45:33 -0400 Subject: add dotty sanity check as suggested by @smarter --- examples/dotty-example/src/Main.scala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/dotty-example') 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) } } -- cgit v1.2.3