d69f845902
NOTE: imports for classes to be used as namespaces (eg, 'Collections.sort()') do not work yet
46 lines
950 B
Plaintext
46 lines
950 B
Plaintext
import java.*
|
|
import util.*
|
|
import <error>utils</error>.*
|
|
|
|
import java.io.PrintStream
|
|
import java.lang.Comparable as Com
|
|
|
|
val l : List<in Int> = new ArrayList<Int>()
|
|
|
|
fun test(l : java.util.List<Int>) {
|
|
val x : java.<error>List</error>
|
|
val y : java.util.List<Int>
|
|
val b : java.lang.Object
|
|
val a : util.List<Int>
|
|
val z : java.<error>utils</error>.List<Int>
|
|
|
|
val f : java.io.File? = null
|
|
|
|
Collections.<error>emptyList</error>
|
|
Collections.emptyList<Int>
|
|
Collections.emptyList<Int>()
|
|
Collections.emptyList<error>()</error>
|
|
|
|
Collections.singleton<Int>(1) : Set<Int>?
|
|
Collections.singleton<Int><error>(1.0)</error>
|
|
|
|
<error>new List<Int></error>
|
|
|
|
// Collections.sort<Integer>(new ArrayList<Integer>())
|
|
|
|
val o = "sdf" <warning>as</warning> Object
|
|
|
|
try {
|
|
// ...
|
|
}
|
|
catch(e: Exception) {
|
|
System.out?.println(e.getMessage())
|
|
}
|
|
|
|
new PrintStream("sdf")
|
|
|
|
val c : Com<Int>? = null
|
|
|
|
c : java.lang.Comparable<Int>?
|
|
}
|