Copy/Paste: Add imports for non-qualifiable callable references
#KT-23407 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package completion.p23381.apx2
|
||||
|
||||
import completion.p23381.funReference
|
||||
|
||||
fun pasteHere() {
|
||||
::funReference
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
completion.p23381.funReference
|
||||
@@ -0,0 +1,9 @@
|
||||
package completion.p23381
|
||||
|
||||
fun funReference() {}
|
||||
|
||||
class InputImpl {
|
||||
fun context() {
|
||||
<selection>::funReference</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package completion.p23381.apx2
|
||||
|
||||
fun pasteHere() {
|
||||
<caret>
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package completion.p23381.apx2
|
||||
|
||||
import completion.p23381.A
|
||||
import completion.p23381.funReference
|
||||
|
||||
fun pasteHere() {
|
||||
A()::funReference
|
||||
}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
completion.p23381.A
|
||||
completion.p23381.funReference
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package completion.p23381
|
||||
|
||||
class A
|
||||
|
||||
fun A.funReference() {}
|
||||
|
||||
class InputImpl {
|
||||
fun context() {
|
||||
<selection>A()::funReference</selection>
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package completion.p23381.apx2
|
||||
|
||||
fun pasteHere() {
|
||||
<caret>
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
package completion.p23381.apx2
|
||||
|
||||
import completion.p23381.A
|
||||
import completion.p23381.funReference
|
||||
|
||||
fun pasteHere() {
|
||||
A::funReference
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
completion.p23381.A
|
||||
completion.p23381.funReference
|
||||
@@ -0,0 +1,11 @@
|
||||
package completion.p23381
|
||||
|
||||
class A
|
||||
|
||||
fun A.funReference() {}
|
||||
|
||||
class InputImpl {
|
||||
fun context() {
|
||||
<selection>A::funReference</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package completion.p23381.apx2
|
||||
|
||||
fun pasteHere() {
|
||||
<caret>
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package completion.p23381.apx2
|
||||
|
||||
import completion.p23381.A
|
||||
|
||||
fun pasteHere() {
|
||||
A()::funReference
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
completion.p23381.A
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package completion.p23381
|
||||
|
||||
class A {
|
||||
fun funReference() {}
|
||||
}
|
||||
|
||||
class InputImpl {
|
||||
fun context() {
|
||||
<selection>A()::funReference</selection>
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package completion.p23381.apx2
|
||||
|
||||
fun pasteHere() {
|
||||
<caret>
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package completion.p23381.apx2
|
||||
|
||||
import completion.p23381.A
|
||||
|
||||
fun pasteHere() {
|
||||
A::funReference
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
completion.p23381.A
|
||||
@@ -0,0 +1,11 @@
|
||||
package completion.p23381
|
||||
|
||||
class A {
|
||||
fun funReference() {}
|
||||
}
|
||||
|
||||
class InputImpl {
|
||||
fun context() {
|
||||
<selection>A::funReference</selection>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package completion.p23381.apx2
|
||||
|
||||
fun pasteHere() {
|
||||
<caret>
|
||||
}
|
||||
Reference in New Issue
Block a user