FIR: Support enhanced types when checking if Java type is primitive

This commit is contained in:
Denis.Zharkov
2021-08-16 18:12:51 +03:00
parent a0553f4dfd
commit 753ba99b04
15 changed files with 104 additions and 36 deletions
@@ -0,0 +1,23 @@
// FIR_IDENTICAL
// FILE: Box.java
import org.jetbrains.annotations.NotNull;
public class Box<T> {
public void put(@NotNull T t) {}
}
// FILE: IntBox.java
import org.jetbrains.annotations.NotNull;
public class IntBox extends Box<Integer> {
public int result = 0;
@Override
public void put(@NotNull Integer t) {
result = t;
}
}
// FILE: main.kt
fun main() {
IntBox().put(1)
}