Fix completion tests after moving collection types in JS

This commit is contained in:
Ilya Gorbunov
2016-08-31 18:50:06 +03:00
parent bf56f04368
commit b741c82a66
3 changed files with 10 additions and 5 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
package Test
import java.util.<caret>
import kotlin.<caret>
class Test {
}
// EXIST: AbstractList, Date
// EXIST_JAVA_ONLY: Random, concurrent
// EXIST: Unit, Nothing, collections
// EXIST_JAVA_ONLY: assert, concurrent
@@ -6,7 +6,10 @@ fun main(args: Array<String>) {
// WITH_ORDER
// EXIST: { lookupString:"Array", tailText:"<T> (kotlin)" }
// EXIST_JAVA_ONLY: { lookupString:"Array", tailText:" (java.sql)" }
// EXIST: { lookupString:"ArrayList", tailText:"<E> (java.util)" }
// todo: unify following two after introducing collection type aliases
// EXIST_JS_ONLY: { lookupString:"ArrayList", tailText:"<E> (kotlin.collections)" }
// EXIST: { lookupString:"ArrayList", tailText:"<E> (java.util)"}
@@ -1,9 +1,11 @@
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 = java.util.HashSet<Int>()
val test = HashSet<Int>()
test.<caret>
}