Debugger: Fix toTypedArray() evaluation (KT-8579)

This commit is contained in:
Yan Zhulanow
2019-04-17 23:32:38 +03:00
parent 9ae8a8abf1
commit bb0bc8a38a
4 changed files with 43 additions and 1 deletions
@@ -0,0 +1,17 @@
package typedArray
fun main() {
val list = listOf<CharSequence>("foo")
//Breakpoint!
val a = 5
}
fun <T> block(block: () -> T): T {
return block()
}
// EXPRESSION: list.toTypedArray().size
// RESULT: 1: I
// EXPRESSION: block { list.toTypedArray().size }
// RESULT: 1: I
@@ -0,0 +1,9 @@
LineBreakpoint created at typedArray.kt:6
Run Java
Connected to the target VM
typedArray.kt:6
Compile bytecode for list.toTypedArray().size
Compile bytecode for block { list.toTypedArray().size }
Disconnected from the target VM
Process finished with exit code 0