initial basic implementation of object literals; move anonymous class name mapping to JetTypeMapper; cleanup many usages of JetTypeMapper
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user