18 lines
311 B
Kotlin
Vendored
18 lines
311 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// FILE: Java.java
|
|
|
|
import java.util.List;
|
|
|
|
class Java {
|
|
public static List<Integer> get(List<Integer> o) { return o; }
|
|
}
|
|
|
|
// FILE: test.kt
|
|
|
|
import java.util.ArrayList
|
|
|
|
fun call(): List<Int> {
|
|
// No errors should be here
|
|
return Java.get(if (true) ArrayList<Int>() else listOf(0))
|
|
}
|