Files
kotlin-fork/compiler/testData/codegen/box/functions/kt1649_2.kt
T

19 lines
221 B
Kotlin
Vendored

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"
}