JVM IR: Fix compilation of nested inner classes

This commit is contained in:
Steven Schäfer
2020-08-28 13:43:52 +02:00
committed by Alexander Udalov
parent 02e78bcd76
commit b02f0f0a25
9 changed files with 49 additions and 1 deletions
@@ -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()