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.
17 lines
253 B
Kotlin
Vendored
17 lines
253 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// FILE: My.java
|
|
|
|
public class My {
|
|
static public My create() { return new My(); }
|
|
public void foo() {}
|
|
}
|
|
|
|
// FILE: Test.kt
|
|
|
|
fun test() {
|
|
val my = My.create()
|
|
if (my == null) {
|
|
my<!UNSAFE_CALL!>.<!>foo()
|
|
}
|
|
}
|