Files
kotlin-fork/compiler/testData/codegen/box/traits/withRequired/superViaBridge.kt
T
2015-05-12 19:43:17 +02:00

23 lines
380 B
Kotlin
Vendored

open class Base {
open fun foo() { }
open fun foo2() { }
}
interface Derived : Base {
override fun foo() {
object {
fun bar() {
//super<Base>@Derived.foo2()
this@Derived.foo2()
}
}.bar()
}
}
class DerivedImpl : Derived, Base()
fun box(): String {
DerivedImpl().foo()
return "OK"
}