Fix JS completion tests: remove unneeded imports, take care about type aliases looking different in completion.
This commit is contained in:
@@ -8,7 +8,7 @@ fun main(args: Array<String>) {
|
|||||||
// EXIST_JAVA_ONLY: { lookupString:"Array", tailText:" (java.sql)" }
|
// EXIST_JAVA_ONLY: { lookupString:"Array", tailText:" (java.sql)" }
|
||||||
|
|
||||||
// todo: unify following two after introducing collection type aliases
|
// todo: unify following two after introducing collection type aliases
|
||||||
// EXIST_JS_ONLY: { lookupString:"ArrayList", tailText:"<E> (kotlin.collections)" }
|
// EXIST: { lookupString:"ArrayList", tailText:"<E> (kotlin.collections)" }
|
||||||
// EXIST: { lookupString:"ArrayList", tailText:"<E> (java.util)"}
|
// EXIST: { lookupString:"ArrayList", tailText:"<E> (java.util)"}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
import java.util.* // temporary until typealiases for collection are introduced in JVM
|
|
||||||
|
|
||||||
fun <T> Iterable<T>.first() : T? {
|
fun <T> Iterable<T>.first() : T? {
|
||||||
return this.iterator()?.next()
|
return this.iterator()?.next()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun main(args : Array<String>) {
|
fun main(args : Array<String>) {
|
||||||
val test = HashSet<Int>()
|
val test = HashSet<Int>() // aliased in JVM to java.util.HashSet
|
||||||
test.<caret>
|
test.<caret>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user