When in debugger context, access private companion object directly
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
// !LANGUAGE: +ProperVisibilityForCompanionObjectInstanceField
|
||||
|
||||
class Outer {
|
||||
private companion object {
|
||||
val result = "OK"
|
||||
}
|
||||
|
||||
val test: String
|
||||
|
||||
init {
|
||||
test = result
|
||||
}
|
||||
}
|
||||
|
||||
fun box() = Outer().test
|
||||
+17
@@ -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
|
||||
Reference in New Issue
Block a user