KT-10433 Copy-pasting reference to companion object member causes import dialog in specific case

#KT-10433 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-06-20 16:41:44 +03:00
parent 9463880c4e
commit 1941572717
10 changed files with 60 additions and 11 deletions
+1 -3
View File
@@ -1,5 +1,3 @@
a.A
a.A.Companion
a.B
a.B.Companion
a.T
a.T
@@ -1,2 +1 @@
a.a
a.a.Companion
a.a
@@ -1,5 +1,5 @@
d.A
d.ClassObject.Companion
d.ClassObject
d.E.ENTRY
d.O1
d.O2
@@ -1,5 +1,5 @@
d.A
d.ClassObject.Companion
d.ClassObject
d.E.ENTRY
d.O1
d.O2
+8
View File
@@ -0,0 +1,8 @@
// ERROR: Unresolved reference: vfff
// ERROR: No value passed for parameter text
package p
fun g() {
val fff = "0"
c(X.vfff)
}
+12
View File
@@ -0,0 +1,12 @@
package p
class X {
companion object { val v = 1 }
}
fun c(value:Int, text:String) {}
fun f() {
c(<selection>X.v</selection>, "")
}
+7
View File
@@ -0,0 +1,7 @@
package p
fun g() {
val fff = "0"
c(<caret>fff)
}