Allow access to effectively invisible declarations in evaluator (KT-18775)
This commit is contained in:
committed by
Yan Zhulanow
parent
5641909d1d
commit
79b2b40289
+18
@@ -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
|
||||
}
|
||||
}
|
||||
+8
@@ -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
|
||||
Reference in New Issue
Block a user