blob: 3e6d24e7e2b2a6d451316ec96d3b3dd37a328e87 [file]
// JVM_ABI_K1_K2_DIFF: KT-63855
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: Null leaking is not allowed by Wasm
fun <T: Any?> nullableFun(): T {
return null as T
}
fun box(): String {
val t = nullableFun<String>()
return if (t?.length == null) "OK" else "Fail"
}