Debugger: Fix VariableAsFunctionResolvedCall evaluation
This commit is contained in:
+25
@@ -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
|
||||
+8
@@ -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
|
||||
Reference in New Issue
Block a user