fix(JS_IR): add outer classes resolving inside the function inliner.

This commit is contained in:
Artem Kobzar
2021-10-28 17:34:58 +00:00
committed by Space
parent 7f7aa9a921
commit 790e8843f9
18 changed files with 359 additions and 10 deletions
@@ -0,0 +1,19 @@
// FILE: 1.kt
class O(val a: String) {
inner class I1(val b: String) {
inner class I2(val c: String) {
inner class I3(val d: String) {
inline fun foo(e: String) = "$a $b $c $d$e"
}
}
}
}
// FILE: 2.kt
fun box(): String {
val result = O("A").I1("lot").I2("of").I3("layers").foo("!")
if (result != "A lot of layers!") return "fail: result is $result"
return "OK"
}