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.
6 lines
112 B
Kotlin
Vendored
6 lines
112 B
Kotlin
Vendored
fun foo(): Int {
|
|
var i: Int? = 42
|
|
i = null
|
|
return <!RETURN_TYPE_MISMATCH, TYPE_MISMATCH!>i + 1<!>
|
|
}
|