FIR2IR: expand type before getting nullability #KT-44803 Fixed

This commit is contained in:
Mikhail Glukhikh
2021-02-11 09:41:53 +03:00
parent 791f589127
commit 5f3102bf2f
6 changed files with 52 additions and 2 deletions
+26
View File
@@ -0,0 +1,26 @@
// TARGET_BACKEND: JVM
// FILE: ClassBuilder.java
import org.jetbrains.annotations.Nullable;
public interface ClassBuilder {
void newMethod(@Nullable String[] exceptions);
}
// FILE: test.kt
typealias JvmMethodExceptionTypes = Array<out String?>?
class TestClassBuilder : ClassBuilder {
override fun newMethod(exceptions: JvmMethodExceptionTypes) {
}
}
fun box(): String {
val arr = arrayOf("OK")
TestClassBuilder().newMethod(null)
TestClassBuilder().newMethod(arr)
return arr[0]
}