aboutsummaryrefslogtreecommitdiff
path: root/examples/dotty-example
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dotty-example')
-rw-r--r--examples/dotty-example/src/Main.scala4
1 files changed, 4 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)
}
}