FIR2IR: expand type before getting nullability #KT-44803 Fixed
This commit is contained in:
@@ -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]
|
||||
}
|
||||
Reference in New Issue
Block a user