Initial support for classes in scripts and REPL

This commit is contained in:
Alexander Udalov
2014-07-07 03:53:02 +04:00
parent c873806b54
commit 415fe7a5e6
18 changed files with 177 additions and 5 deletions
@@ -0,0 +1,11 @@
>>> enum class E {
... FIRST {
... override fun foo() = "HELLO"
... }
... SECOND {
... override fun foo() = "WORLD"
... }
... open fun foo() = "E"
... }
>>> E.FIRST.foo() + " " + E.SECOND.foo()
HELLO WORLD