Files
kotlin-fork/idea/testData/codeInsight/overrideImplement/inheritVisibilities.kt.after
T

28 lines
637 B
Plaintext

open class A() {
protected open fun protectedFun() { }
internal open fun internalFun() {}
public open fun publicFun() {}
}
trait B {
protected open val protectedProperty : Int
internal open val internalProperty : Int
public open val publicProperty : Int
}
class C : A(), B {
override fun internalFun() {
super<A>.internalFun()
}
override val internalProperty: Int = 0
override fun protectedFun() {
super<A>.protectedFun()
}
override val protectedProperty: Int = 0
override fun publicFun() {
super<A>.publicFun()
}
override val publicProperty: Int = 0
}