Fix completion tests after moving collection types in JS
This commit is contained in:
+3
-3
@@ -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>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user