e6b5cb5216
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
59 lines
1.1 KiB
Kotlin
Vendored
59 lines
1.1 KiB
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
// !CHECK_TYPE
|
|
// SKIP_JAVAC
|
|
// FULL_JDK
|
|
|
|
// FILE: a.kt
|
|
|
|
import java.*
|
|
import java.util.*
|
|
import utils.*
|
|
|
|
import java.io.PrintStream
|
|
import java.lang.Comparable as Com
|
|
|
|
val l : MutableList<in Int> = ArrayList<Int>()
|
|
|
|
fun test(l : java.util.List<Int>) {
|
|
val x : <!UNRESOLVED_REFERENCE!>java.List<!>
|
|
val y : java.util.List<Int>
|
|
val b : java.lang.Object
|
|
val z : <!UNRESOLVED_REFERENCE!>java.utils.List<Int><!>
|
|
|
|
val f : java.io.File? = null
|
|
|
|
Collections.<!UNRESOLVED_REFERENCE!>emptyList<!>
|
|
Collections.<!UNRESOLVED_REFERENCE!>emptyList<!><Int>
|
|
Collections.emptyList<Int>()
|
|
Collections.emptyList()
|
|
|
|
checkSubtype<Set<Int>?>(Collections.singleton<Int>(1))
|
|
Collections.<!INAPPLICABLE_CANDIDATE!>singleton<!><Int>(1.0)
|
|
|
|
List<Int>
|
|
|
|
|
|
val o = "sdf" as Object
|
|
|
|
try {
|
|
// ...
|
|
}
|
|
catch(e: Exception) {
|
|
System.out.println(e.message)
|
|
}
|
|
|
|
PrintStream("sdf")
|
|
|
|
val c : Com<Int>? = null
|
|
|
|
checkSubtype<java.lang.Comparable<Int>?>(c)
|
|
|
|
// Collections.sort<Integer>(ArrayList<Integer>())
|
|
xxx.<!UNRESOLVED_REFERENCE!>Class<!>()
|
|
}
|
|
|
|
|
|
// FILE: b.kt
|
|
package xxx
|
|
import java.lang.Class;
|