mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
13 lines
206 B
Kotlin
Vendored
13 lines
206 B
Kotlin
Vendored
open class A : funNotDirectSuperClass() {}
|
|
|
|
class Derived(): A() {
|
|
fun test(): String {
|
|
return funNotDirectSuperClass.protectedFun()!!
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Derived().test()
|
|
}
|
|
|