initial implementation of class objects

This commit is contained in:
Dmitry Jemerov
2011-07-07 16:13:25 +02:00
parent 9e28fe70c1
commit 4e48e527b1
8 changed files with 93 additions and 6 deletions
@@ -0,0 +1,11 @@
class C() {
class object {
fun create() = C()
}
}
fun box(): String {
val c = C.create()
return if (c is C) "OK" else "fail"
}