Debugger: Handle closure receivers came from outer callables properly (KT-31709)

This commit is contained in:
Yan Zhulanow
2019-06-14 19:13:50 +09:00
parent 577f32740e
commit 188ed82081
13 changed files with 109 additions and 7 deletions
@@ -0,0 +1,25 @@
//WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
class Environment(
val fieldAccessedInsideChild: Int,
val how: Environment.() -> Unit
)
fun box(): String {
Environment(
3,
{
class Child {
val a = fieldAccessedInsideChild
}
class Parent {
val children: List<Child> =
(0..4).map { Child() }
}
}
)
return "OK"
}