JVM_IR, codegen: handle names for classes within local classes

This commit is contained in:
Georgy Bronnikov
2019-10-02 14:55:47 +03:00
parent cd251458bd
commit 4b5877f3b5
9 changed files with 61 additions and 26 deletions
+16
View File
@@ -0,0 +1,16 @@
enum class E {
OK, NOT_OK
}
interface I {
fun f(e: E): String
}
val obj = object: I {
override fun f(e: E) = when(e) {
E.OK -> "OK"
E.NOT_OK -> "NOT OK"
}
}
fun box() = obj.f(E.OK)