Callable reference completion for non-imported callables

This commit is contained in:
Valentin Kipyatkov
2015-10-01 19:07:18 +03:00
parent 3a2bc51445
commit 08335a2ac9
21 changed files with 193 additions and 127 deletions
@@ -0,0 +1,9 @@
package dependency
fun CharSequence.extFun(){}
fun Int.wrongExtFun(){}
fun topLevelFun(){}
val topLevelVal: Int = 1
@@ -0,0 +1,9 @@
fun String.foo() {
val v = ::<caret>
}
// INVOCATION_COUNT: 2
// EXIST: extFun
// EXIST: topLevelFun
// EXIST: topLevelVal
// ABSENT: wrongExtFun
@@ -0,0 +1,7 @@
package dependency
fun CharSequence.extFun(){}
val String.extVal: Int get() = 1
fun Int.wrongExtFun(){}
@@ -0,0 +1,5 @@
val v = String::<caret>
// EXIST: extFun
// EXIST: extVal
// ABSENT: wrongExtFun