When in debugger context, access private companion object directly

This commit is contained in:
Dmitry Petrov
2018-06-26 12:40:33 +03:00
parent bef3d4ace2
commit 46a3f7420c
9 changed files with 89 additions and 6 deletions
@@ -0,0 +1,15 @@
// !LANGUAGE: +ProperVisibilityForCompanionObjectInstanceField
class Outer {
private companion object {
val result = "OK"
}
val test: String
init {
test = result
}
}
fun box() = Outer().test
@@ -0,0 +1,17 @@
// !LANGUAGE: +ProperVisibilityForCompanionObjectInstanceField
class Outer {
private companion object {
val result = "OK"
}
class Nested {
val test: String
init {
test = result
}
}
}
fun box() = Outer.Nested().test