Fix completion handler tests: use tail specifier to select one of multiple completion variants (eg 'kotlin.collections.ArrayList' vs 'java.util.ArrayList').

Replace aliased types imported by default with something else.
This commit is contained in:
Ilya Gorbunov
2016-10-06 23:07:49 +03:00
parent a62cda8365
commit e787930673
13 changed files with 28 additions and 25 deletions
@@ -2,4 +2,5 @@ class Foo<T, V>
class Bar: Foo<S<caret>
// ELEMENT: StringBuilder
// ELEMENT: StringBuilder
// TAIL_TEXT: " (kotlin.text)"
@@ -1,5 +1,6 @@
class Foo<T, V>
class Bar: Foo<StringBuilder<caret>
class Bar: Foo<StringBuilder
// ELEMENT: StringBuilder
// ELEMENT: StringBuilder
// TAIL_TEXT: " (kotlin.text)"
@@ -1,7 +1,6 @@
import java.util.HashMap
fun foo() {
val v = HashMap<String, H<caret>
}
// ELEMENT: HashSet
// ELEMENT: HashSet
// TAIL_TEXT: "<E> (kotlin.collections)"
@@ -1,8 +1,6 @@
import java.util.HashMap
import java.util.HashSet
fun foo() {
val v = HashMap<String, HashSet<caret>
val v = HashMap<String, HashSet
}
// ELEMENT: HashSet
// ELEMENT: HashSet
// TAIL_TEXT: "<E> (kotlin.collections)"