aboutsummaryrefslogtreecommitdiff
path: root/examples/dotty-example
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-09-28 08:45:33 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-09-28 10:37:45 -0400
commitcfa41097812e1d80ef536790fd1a130f82935ae8 (patch)
tree616e89d31762dbc7d2e36cb5be8e8bdcffdf1cc8 /examples/dotty-example
parenta2b34b2444401f6ecebbbfa8099459f2c949df49 (diff)
downloadcbt-cfa41097812e1d80ef536790fd1a130f82935ae8.tar.gz
cbt-cfa41097812e1d80ef536790fd1a130f82935ae8.tar.bz2
cbt-cfa41097812e1d80ef536790fd1a130f82935ae8.zip
add dotty sanity check as suggested by @smarter
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)
}
}