Debugger: Do not assume we are inside the class body when in '}' (KT-15259)

This commit is contained in:
Yan Zhulanow
2019-06-28 18:41:51 +09:00
parent a8efb349ed
commit 0f4085066f
5 changed files with 76 additions and 14 deletions
@@ -0,0 +1,14 @@
package kt15259
interface ObjectFace
private fun makeFace() = object : ObjectFace {
//Breakpoint!
}
fun main() {
makeFace()
}
// EXPRESSION: this
// RESULT: 'this' is not defined in this context
@@ -0,0 +1,7 @@
LineBreakpoint created at kt15259.kt:7
Run Java
Connected to the target VM
kt15259.kt:7
Disconnected from the target VM
Process finished with exit code 0