Regression tests #KT-8168 Obsolete
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// 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))
|
||||
}
|
||||
Reference in New Issue
Block a user