Files
kotlin-fork/compiler/testData/codegen/box/functions/kt1649_1.kt
T
2018-06-28 12:26:41 +02:00

20 lines
249 B
Kotlin
Vendored

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