Test for KT-9430: proper visibility of protected members of base class
in child classes
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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<!>() }
|
||||
}
|
||||
Reference in New Issue
Block a user