Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/alwaysNullWithJava.kt
T
2021-05-25 13:28:27 +03:00

16 lines
236 B
Kotlin
Vendored

// 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()
}
}