Shorten References: Skip companion receivers on callable references

This is temporary fix due to KT-13934 which prevents resolution
of references like X::foo where foo is a member or extension
of X companion object
This commit is contained in:
Alexey Sedunov
2017-03-22 12:33:00 +03:00
parent d71cefee8a
commit aad11ff0f4
4 changed files with 51 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
package test
class A {
companion object {
fun foo() {
}
}
}
fun A.Companion.bar() {
}
fun test() {
<selection>A.Companion::foo
A.Companion::bar
(A.Companion)::foo
(A.Companion)::bar</selection>
}
@@ -0,0 +1,20 @@
package test
class A {
companion object {
fun foo() {
}
}
}
fun A.Companion.bar() {
}
fun test() {
A.Companion::foo
A.Companion::bar
(A)::foo
(A)::bar
}