Completion: fix shortening of fully qualified name for case of conflicts between property and function

#KT-31902 Fixed
#KT-33937 Fixed
This commit is contained in:
Dmitry Gridin
2019-09-26 17:58:26 +07:00
parent 589094377e
commit c185cecb40
6 changed files with 61 additions and 21 deletions
@@ -0,0 +1,7 @@
package a
class Goo {
fun x() {
foo<caret>
}
}
@@ -0,0 +1,5 @@
package a.b
val Foo.foo: Int get() = 123
fun foo(i: (Int, Int) -> Unit) {}
class Foo {}
@@ -0,0 +1,9 @@
package a
import a.b.foo
class Goo {
fun x() {
foo { i, i2 -> }
}
}