mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
20 lines
233 B
Kotlin
Vendored
20 lines
233 B
Kotlin
Vendored
open class A {
|
|
open fun foo2(): String = "OK"
|
|
}
|
|
|
|
open class B : A() {
|
|
|
|
}
|
|
|
|
class C : B() {
|
|
inner class D {
|
|
val foo: String = super<B>@C.foo2()
|
|
}
|
|
}
|
|
|
|
fun box() : String {
|
|
val obj = C().D();
|
|
return obj.foo
|
|
}
|
|
|