Evaluator: Support delegated local variables

This commit is contained in:
Yan Zhulanow
2019-02-19 22:04:21 +03:00
parent 77bec27c99
commit 81f4e2fb3b
5 changed files with 58 additions and 8 deletions
@@ -0,0 +1,10 @@
package delegatedVariables
fun main() {
val a by lazy { "foo" }
//Breakpoint!
val b = a
}
// EXPRESSION: a
// RESULT: "foo": Ljava/lang/String;
@@ -0,0 +1,8 @@
LineBreakpoint created at delegatedVariables.kt:6
Run Java
Connected to the target VM
delegatedVariables.kt:6
Compile bytecode for a
Disconnected from the target VM
Process finished with exit code 0