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

19 lines
279 B
Kotlin

open class Base {
open fun foo() : String {
return "fail"
}
}
interface Derived : Base {
override fun foo() : String {
//super.foo()
return "OK"
}
}
class DerivedImpl : Derived, Base()
fun box(): String {
return DerivedImpl().foo()
}