51225d3556
in child classes
16 lines
220 B
Kotlin
Vendored
16 lines
220 B
Kotlin
Vendored
open class A {
|
|
protected fun foo() {}
|
|
}
|
|
|
|
class B: A()
|
|
|
|
class C: A() {
|
|
fun bar() {
|
|
A().foo()
|
|
B().<!INVISIBLE_MEMBER!>foo<!>()
|
|
}
|
|
}
|
|
|
|
class D {
|
|
fun qux() { B().<!INVISIBLE_MEMBER!>foo<!>() }
|
|
} |