Fixed KT-5611 Completion doesn't include not imported extensions for implicit receiver

#KT-5611 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-10-08 12:17:20 +04:00
parent 22c80d2694
commit a124827c4e
8 changed files with 104 additions and 35 deletions
@@ -0,0 +1,13 @@
package second
import first.C
fun String.helloFun() { }
fun String.helloWithParams(i : Int): String = ""
val String.helloProp: Int get() = 1
val C.helloForC: Int get() = 1
fun Int.helloFake() { }
@@ -0,0 +1,14 @@
package first
class C {
fun String.firstFun() {
hello<caret>
}
}
// EXIST: helloFun
// EXIST: helloWithParams
// EXIST: helloProp
// EXIST: helloForC
// ABSENT: helloFake
// NUMBER: 4