4726dcce40
In order to make resolution still work for members not available from `Nothing`, we track the type without `Nothing?` and use that for resolution instead.
11 lines
206 B
Kotlin
Vendored
11 lines
206 B
Kotlin
Vendored
// DONT_TARGET_EXACT_BACKEND: WASM
|
|
// WASM_MUTE_REASON: NULL_REF_CAST
|
|
fun String?.foo() = this ?: "OK"
|
|
|
|
fun foo(i: Int?): String {
|
|
if (i == null) return i.foo()
|
|
return "$i"
|
|
}
|
|
|
|
fun box() = foo(null)
|