Fix breakpoints for the same inline function nested calls (KT-22366)

This commit changes the format of the synthetic local variables for inline functions.
This commit is contained in:
Yan Zhulanow
2018-11-30 18:09:57 +09:00
parent ae4f05cf62
commit 4b4d8dd660
6 changed files with 72 additions and 22 deletions
@@ -0,0 +1,14 @@
package kt22366
fun main(args: Array<String>) {
val yy = (0 .. 10).map { a ->
//Breakpoint! (lambdaOrdinal = -1)
(0 .. 10).map { b -> b }.max()
}
}
// EXPRESSION: a
// RESULT: 0: I
// EXPRESSION: b
// RESULT: Unresolved reference: b
@@ -0,0 +1,18 @@
LineBreakpoint created at kt22366.kt:6 lambdaOrdinal = -1
Run Java
Connected to the target VM
kt22366.kt:6
Compile bytecode for a
kt22366.kt:6
resuming kt22366.kt:6
resuming kt22366.kt:6
resuming kt22366.kt:6
resuming kt22366.kt:6
resuming kt22366.kt:6
resuming kt22366.kt:6
resuming kt22366.kt:6
resuming kt22366.kt:6
resuming kt22366.kt:6
Disconnected from the target VM
Process finished with exit code 0