Files
kotlin-fork/compiler/testData/codegen/box/functions/kt1649_2.kt
T
2019-11-19 11:00:09 +03:00

20 lines
251 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
interface A {
val method : () -> Unit?
}
fun test(a : A) {
if (a.method != null) {
a.method!!()
}
}
class B : A {
override val method = { }
}
fun box(): String {
test(B())
return "OK"
}