Renamed *.jet to *.kt in test data of JetPsiCheckerTest.
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
import java.*
|
||||
import java.util.*
|
||||
import <error>utils</error>.*
|
||||
|
||||
import java.io.PrintStream
|
||||
import <warning>java.lang.Comparable</warning> as Com
|
||||
|
||||
val l : List<in Int> = ArrayList<Int>()
|
||||
|
||||
fun test(<warning>l</warning> : List<Int>) {
|
||||
val <warning>x</warning> : java.<error>List</error>
|
||||
val <warning>y</warning> : List<Int>
|
||||
val <warning>b</warning> : <warning>java.lang.Object</warning>
|
||||
val <warning>a</warning> : <warning>util.List<Int></warning>
|
||||
val <warning>z</warning> : java.<error>utils</error>.<error>List</error><Int>
|
||||
|
||||
val <warning>f</warning> : java.io.File? = null
|
||||
|
||||
Collections.<error><error>emptyList</error></error>
|
||||
Collections.<error>emptyList<Int></error>
|
||||
Collections.emptyList<Int>()
|
||||
Collections.<error>emptyList</error>()
|
||||
|
||||
Collections.singleton<Int>(1) : Set<Int>?
|
||||
Collections.singleton<Int>(<error>1.0</error>)
|
||||
|
||||
<error>List</error><Int>
|
||||
|
||||
|
||||
val <warning>o</warning> = "sdf" <warning>as</warning> <warning>Object</warning>
|
||||
|
||||
try {
|
||||
// ...
|
||||
}
|
||||
catch(e: Exception) {
|
||||
System.out.println(e.getMessage())
|
||||
}
|
||||
|
||||
PrintStream("sdf")
|
||||
|
||||
val c : <warning>Com<Int></warning>? = null
|
||||
|
||||
c : <warning>java.lang.Comparable<Int></warning>?
|
||||
|
||||
// Collections.sort<Integer>(ArrayList<Integer>())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user