diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-28 08:45:33 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-28 10:37:45 -0400 |
commit | cfa41097812e1d80ef536790fd1a130f82935ae8 (patch) | |
tree | 616e89d31762dbc7d2e36cb5be8e8bdcffdf1cc8 /examples | |
parent | a2b34b2444401f6ecebbbfa8099459f2c949df49 (diff) | |
download | cbt-cfa41097812e1d80ef536790fd1a130f82935ae8.tar.gz cbt-cfa41097812e1d80ef536790fd1a130f82935ae8.tar.bz2 cbt-cfa41097812e1d80ef536790fd1a130f82935ae8.zip |
add dotty sanity check as suggested by @smarter
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dotty-example/src/Main.scala | 4 |
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) } } |