Files
kotlin-fork/compiler/testData/codegen/box/functions/kt1649_2.kt
T
2020-11-09 16:04:43 +03:00

21 lines
289 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: UNIT_ISSUES
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"
}