JVM IR: Fix compilation of nested inner classes
This commit is contained in:
committed by
Alexander Udalov
parent
02e78bcd76
commit
b02f0f0a25
@@ -0,0 +1,13 @@
|
||||
class A(val x: String) {
|
||||
fun value(): String {
|
||||
return object {
|
||||
inner class Y {
|
||||
val y = x
|
||||
}
|
||||
|
||||
fun value() = Y().y
|
||||
}.value()
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String = A("OK").value()
|
||||
Reference in New Issue
Block a user