FIR: Fix safe call receiver nullability after null check

This commit is contained in:
Denis.Zharkov
2021-10-22 19:59:09 +03:00
parent 2a8eacd4ba
commit 4b1ce6c1a7
7 changed files with 47 additions and 1 deletions
@@ -0,0 +1,11 @@
// SKIP_TXT
// FILE: Api.java
import org.jetbrains.annotations.NotNull;
public abstract class Api<T> {
public abstract void typeOf(@NotNull T node);
}
// FILE: main.kt
fun <E> foo(a: Api<E>, e: E?) {
e?.let { a.typeOf(<!DEBUG_INFO_SMARTCAST!>e<!>) }
}