53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
import java.*
|
|
import util.*
|
|
import <error>utils</error>.*
|
|
|
|
import java.io.PrintStream
|
|
import java.lang.Comparable as Com
|
|
|
|
val l : List<in Int> = ArrayList<Int>()
|
|
|
|
fun test(l : java.util.List<Int>) {
|
|
val <warning>x</warning> : java.<error>List</error>
|
|
val <warning>y</warning> : java.util.List<Int>
|
|
val <warning>b</warning> : java.lang.Object
|
|
val <warning>a</warning> : util.List<Int>
|
|
val <warning>z</warning> : java.<error>utils</error>.List<Int>
|
|
|
|
val <warning>f</warning> : java.io.File? = null
|
|
|
|
Collections.<error>emptyList</error>
|
|
Collections.emptyList<Int>
|
|
Collections.emptyList<Int>()
|
|
Collections.emptyList()
|
|
|
|
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> Object
|
|
|
|
try {
|
|
// ...
|
|
}
|
|
catch(e: Exception) {
|
|
System.out?.println(e.getMessage())
|
|
}
|
|
|
|
PrintStream("sdf")
|
|
|
|
val c : Com<Int>? = null
|
|
|
|
c : java.lang.Comparable<Int>?
|
|
|
|
// Collections.sort<Integer>(ArrayList<Integer>())
|
|
xxx.<error>Class</error>()
|
|
}
|
|
|
|
|
|
namespace xxx {
|
|
import java.lang.Class;
|
|
}
|