Files
kotlin/compiler/testData/codegen/box/defaultArguments/function/complexInheritance.kt
2019-11-19 11:00:09 +03:00

16 lines
253 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// 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"
}