Imports on paste: do not suggest to import already imported extensions
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package dependency
|
||||
|
||||
fun String.extensionFun() {}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun foo() {
|
||||
s.extensionFun()
|
||||
for (i in s.indices) {
|
||||
val pair = s to null
|
||||
val s1 = s + "1"
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// RUNTIME
|
||||
// ALLOW_UNRESOLVED
|
||||
|
||||
fun foo(s: String) {
|
||||
<selection> s.extensionFun()
|
||||
for (i in s.indices) {
|
||||
val pair = s to null
|
||||
val s1 = s + "1"
|
||||
}
|
||||
</selection>}
|
||||
@@ -0,0 +1,3 @@
|
||||
fun foo() {
|
||||
<caret>
|
||||
}
|
||||
Reference in New Issue
Block a user