Allow access to effectively invisible declarations in evaluator (KT-18775)

This commit is contained in:
Yan Zhulanow
2017-09-14 21:08:24 +03:00
committed by Yan Zhulanow
parent 5641909d1d
commit 79b2b40289
4 changed files with 39 additions and 1 deletions
@@ -0,0 +1,18 @@
package invisibleDeclarations
fun main(args: Array<String>) {
A()
}
class A() {
private companion object {
val test = 5
}
init {
// EXPRESSION: test
// RESULT: 5: I
//Breakpoint!
val a = 1
}
}
@@ -0,0 +1,8 @@
LineBreakpoint created at invisibleDeclarations.kt:16
Run Java
Connected to the target VM
invisibleDeclarations.kt:16
Compile bytecode for test
Disconnected from the target VM
Process finished with exit code 0