diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-26 19:57:44 +0000 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-26 22:57:40 -0400 |
commit | dd96e989d81180d4bbb8b30846a53c8239dfe3ac (patch) | |
tree | 3430078bd2e9fb2944c27eb87ae3fd53a5eb8937 /examples/dotty-example/src/Main.scala | |
parent | d23dd6040fdba7b201e5f15d7027030d5259ef8e (diff) | |
download | cbt-dd96e989d81180d4bbb8b30846a53c8239dfe3ac.tar.gz cbt-dd96e989d81180d4bbb8b30846a53c8239dfe3ac.tar.bz2 cbt-dd96e989d81180d4bbb8b30846a53c8239dfe3ac.zip |
Dotty plugin and example project.
Diffstat (limited to 'examples/dotty-example/src/Main.scala')
-rw-r--r-- | examples/dotty-example/src/Main.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/dotty-example/src/Main.scala b/examples/dotty-example/src/Main.scala new file mode 100644 index 0000000..411527a --- /dev/null +++ b/examples/dotty-example/src/Main.scala @@ -0,0 +1,7 @@ +object Main extends Foo("Hello Dotty - trait parameters, yay"){ + def main(args: Array[String]) = { + println(hello) + } +} + +trait Foo(val hello: String) |