Debugger: Fix evaluation on value parameter name position (KT-30976)

This commit is contained in:
Yan Zhulanow
2019-04-23 23:53:49 +03:00
parent 577b3e096f
commit a385b4d9d0
5 changed files with 54 additions and 12 deletions
@@ -0,0 +1,20 @@
package valueParameterName
fun main() {
"foo".foo()
}
fun String.foo() {
val a = Foo(
a = this
)
val b = Foo(
//Breakpoint!
a = this
)
}
private class Foo(val a: String)
// EXPRESSION: this
// RESULT: "foo": Ljava/lang/String;
@@ -0,0 +1,8 @@
LineBreakpoint created at valueParameterName.kt:13
Run Java
Connected to the target VM
valueParameterName.kt:13
Compile bytecode for this
Disconnected from the target VM
Process finished with exit code 0