Postpone companion object field visibility
Have to reconsider this issue because of interface companion objects.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
interface A {
|
||||
fun test() = ok()
|
||||
|
||||
private companion object {
|
||||
fun ok() = "OK"
|
||||
}
|
||||
}
|
||||
|
||||
class C : A
|
||||
|
||||
fun box() = C().test()
|
||||
Reference in New Issue
Block a user