Fix JS completion tests: remove unneeded imports, take care about type aliases looking different in completion.

This commit is contained in:
Ilya Gorbunov
2016-11-04 06:02:23 +03:00
parent e787930673
commit d103657e07
2 changed files with 2 additions and 4 deletions
@@ -8,7 +8,7 @@ fun main(args: Array<String>) {
// EXIST_JAVA_ONLY: { lookupString:"Array", tailText:" (java.sql)" }
// 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)"}
@@ -1,11 +1,9 @@
import java.util.* // temporary until typealiases for collection are introduced in JVM
fun <T> Iterable<T>.first() : T? {
return this.iterator()?.next()
}
fun main(args : Array<String>) {
val test = HashSet<Int>()
val test = HashSet<Int>() // aliased in JVM to java.util.HashSet
test.<caret>
}