KT-16076 Completion inserts FQN kotlin.text.String

KT-14831 Don't add import statement and FQN on converting lambda to reference if typealias is used
KT-16088 Completion wrongly inserts FQN for `kotlin` package
 #KT-16076 fixed
 #KT-14831 fixed
 #KT-16088 fixed
This commit is contained in:
Simon Ogorodnik
2017-02-06 22:25:21 +03:00
parent fee676a281
commit 2490318f93
21 changed files with 216 additions and 24 deletions
@@ -0,0 +1,6 @@
fun some() {
String<caret>
}
// ELEMENT: String
// TAIL_TEXT: "(bytes: ByteArray) (kotlin.text)"
@@ -0,0 +1,6 @@
fun some() {
String()
}
// ELEMENT: String
// TAIL_TEXT: "(bytes: ByteArray) (kotlin.text)"
@@ -1,4 +1,3 @@
import java.util.HashMap
import java.util.List
fun foo(p: HashMap<String, List<Int>>){}
@@ -1,6 +1,4 @@
import java.util.HashMap
import java.util.List
import kotlin.collections.HashMap
fun foo(p: HashMap<String, List<Int>>){}