Evaluator: Support 'field' variable evaluation for top-level properties

This commit is contained in:
Yan Zhulanow
2019-02-19 22:54:41 +03:00
parent 81f4e2fb3b
commit 632b9ac38c
4 changed files with 34 additions and 3 deletions
@@ -0,0 +1,12 @@
package staticField
fun main() {
x
}
val x: String = "x"
//Breakpoint!
get() = "foo" + field
// EXPRESSION: field
// RESULT: "x": Ljava/lang/String;
@@ -0,0 +1,8 @@
LineBreakpoint created at staticField.kt:9
Run Java
Connected to the target VM
staticField.kt:9
Compile bytecode for field
Disconnected from the target VM
Process finished with exit code 0