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,13 @@
package kt31709
data class A(val a: Int)
fun main() {
with(A(2)) {
//Breakpoint!
listOf(1, 2, 3, 4, 5).filter { it > a }
}
}
// EXPRESSION: listOf(1, 2, 3, 4, 5).filter { it > a }
// RESULT: instance of java.util.ArrayList(id=ID): Ljava/util/ArrayList;
@@ -0,0 +1,13 @@
LineBreakpoint created at kt31709.kt:8
Run Java
Connected to the target VM
kt31709.kt:8
Compile bytecode for listOf(1, 2, 3, 4, 5).filter { it > a }
kt31709.kt:8
resuming kt31709.kt:8
resuming kt31709.kt:8
resuming kt31709.kt:8
resuming kt31709.kt:8
Disconnected from the target VM
Process finished with exit code 0