mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 15:53:49 +00:00
17 lines
294 B
Kotlin
Vendored
17 lines
294 B
Kotlin
Vendored
// 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))
|
|
}
|