JET-53 Support import of individual classes from Java packages

NOTE: imports for classes to be used as namespaces (eg, 'Collections.sort()') do not work yet
This commit is contained in:
Andrey Breslav
2011-05-26 21:09:39 +04:00
parent cc26da07df
commit d69f845902
2 changed files with 43 additions and 2 deletions
+8
View File
@@ -2,6 +2,9 @@ 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>) {
@@ -34,4 +37,9 @@ fun test(l : java.util.List<Int>) {
System.out?.println(e.getMessage())
}
new PrintStream("sdf")
val c : Com<Int>? = null
c : java.lang.Comparable<Int>?
}