cca64b8fab
^KT-40555 Fixed
16 lines
326 B
Kotlin
Vendored
16 lines
326 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
// FILE: Test.java
|
|
public class Test {
|
|
static public void foo(String ... x) {
|
|
|
|
}
|
|
}
|
|
|
|
// FILE: test.kt
|
|
fun <T> select(vararg x: T) = x[1]
|
|
|
|
fun main(x: Array<String>?) {
|
|
Test.foo(<!SPREAD_OF_NULLABLE!>*<!>(select(arrayOf(""), null))) // no compilation errors before the fix, NPE
|
|
}
|