Files
kotlin-fork/backend.native/tests/external/codegen/box/functions/kt1649_1.kt
T
2017-03-13 15:31:46 +03:00

19 lines
223 B
Kotlin

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