Debugger: Fix VariableAsFunctionResolvedCall evaluation

This commit is contained in:
Yan Zhulanow
2019-04-23 06:33:34 +09:00
parent 4a90e9d0ab
commit 999d5ce3bb
4 changed files with 51 additions and 11 deletions
@@ -0,0 +1,25 @@
package variableAsFunction
fun main() {
class Foo
class Bar {
operator fun Foo.invoke(f: Int) = f
}
with (Bar()) {
block {
val foo = Foo()
//Breakpoint!
val y = foo(5)
}
}
}
fun block(block: () -> Unit) {
block()
}
// EXPRESSION: foo(5)
// RESULT: 5: I
@@ -0,0 +1,8 @@
LineBreakpoint created at variableAsFunction.kt:14
Run Java
Connected to the target VM
variableAsFunction.kt:14
Compile bytecode for foo(5)
Disconnected from the target VM
Process finished with exit code 0