mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
16 lines
248 B
Kotlin
Vendored
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"
|
|
} |