Files
kotlin-fork/compiler/testData/codegen/box/defaultArguments/function/complexInheritance.kt
T
2020-04-27 11:50:24 +03:00

15 lines
223 B
Kotlin
Vendored

// See KT-21968
interface A {
fun f(cause: Int? = null): Boolean
}
open class B : A {
override fun f(cause: Int?): Boolean = true
}
class D : B(), A
fun box(): String {
return if (D().f()) "OK" else "fail"
}