initial basic implementation of object literals; move anonymous class name mapping to JetTypeMapper; cleanup many usages of JetTypeMapper

This commit is contained in:
Dmitry Jemerov
2011-06-29 17:10:47 +02:00
parent f26d0b4af7
commit 47bb3d6a2c
12 changed files with 140 additions and 62 deletions
@@ -0,0 +1,10 @@
class C() {
val child = object {
fun toString(): String = "child"
}
}
fun box(): String {
val c = C()
return if (c.child.toString() == "child") "OK" else "fail"
}