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
+5 -1
View File
@@ -1,3 +1,7 @@
package fq
interface Iface
fun foo() {
<selection>java.util.List</selection>
<selection>fq.Iface</selection>
}
+5 -3
View File
@@ -1,5 +1,7 @@
import java.util.List
package fq
interface Iface
fun foo() {
List
}
Iface
}
+5
View File
@@ -0,0 +1,5 @@
class A {
fun my() {
<selection>kotlin.repeat()</selection>
}
}
+5
View File
@@ -0,0 +1,5 @@
class A {
fun my() {
repeat()
}
}
+3
View File
@@ -0,0 +1,3 @@
fun my() {
val s = <selection>kotlin.text.String()</selection>
}
+3
View File
@@ -0,0 +1,3 @@
fun my() {
val s = String()
}
@@ -0,0 +1,9 @@
package d
fun my(s: String) {
}
fun my(i: Int) {
}
@@ -0,0 +1,15 @@
package d
class E() {
fun my(s: String) {
}
fun my(i: Int) {
}
fun usage() {
<selection>d.my()</selection>
}
}
@@ -0,0 +1,15 @@
package d
class E() {
fun my(s: String) {
}
fun my(i: Int) {
}
fun usage() {
d.my()
}
}