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:
+5
-1
@@ -1,3 +1,7 @@
|
||||
package fq
|
||||
|
||||
interface Iface
|
||||
|
||||
fun foo() {
|
||||
<selection>java.util.List</selection>
|
||||
<selection>fq.Iface</selection>
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
import java.util.List
|
||||
package fq
|
||||
|
||||
interface Iface
|
||||
|
||||
fun foo() {
|
||||
List
|
||||
}
|
||||
Iface
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class A {
|
||||
fun my() {
|
||||
<selection>kotlin.repeat()</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class A {
|
||||
fun my() {
|
||||
repeat()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun my() {
|
||||
val s = <selection>kotlin.text.String()</selection>
|
||||
}
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user