Files
kotlin-fork/compiler/testData/codegen/box/traits/withRequiredSuper.kt
T

19 lines
275 B
Kotlin

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