FE: don't lose annotations on Java primitive arrays

but only use them to enhance for warnings for now.

^KT-48861 Fixed
This commit is contained in:
pyos
2021-09-22 13:14:05 +02:00
committed by Mikhail Glukhikh
parent c6e4d034cb
commit 6c6d653e85
26 changed files with 245 additions and 126 deletions
@@ -0,0 +1,12 @@
// FIR_IDENTICAL
// SKIP_TXT
// !LANGUAGE: +EnhanceNullabilityOfPrimitiveArrays
// FILE: J.java
import org.jetbrains.annotations.Nullable;
public interface J {
int @Nullable [] foo();
}
// FILE: main.kt
fun bar(j: J) = j.foo()<!UNSAFE_CALL!>.<!>iterator()