Files
kotlin/compiler/testData/codegen/box/defaultArguments/function/complexInheritance.kt
2018-06-21 13:27:17 +03:00

16 lines
248 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_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"
}