ShortenReferences: cleanup code & add tests for property-function conflicts

This commit is contained in:
Alexander Podkhalyuzin
2019-09-20 14:07:10 -07:00
committed by Dmitry Gridin
parent 917a7f572d
commit 9a2da67919
9 changed files with 87 additions and 41 deletions
@@ -0,0 +1,6 @@
package a.b
fun foo(s: String) {}
fun foo(i: Int) {}
internal val Foo.foo: Int get() = 123
class Foo {}
+7
View File
@@ -0,0 +1,7 @@
package a
class Goo {
fun x() {
<selection>_Qfadj4tPV.a.b.foo()</selection>
}
}
@@ -0,0 +1,9 @@
package a
import a.b.foo
class Goo {
fun x() {
foo()
}
}