Non-imported top-level functions completion does not require second press

This commit is contained in:
Valentin Kipyatkov
2015-11-06 15:47:43 +03:00
parent 4c5d5ed18f
commit 80a1d94515
12 changed files with 22 additions and 26 deletions
@@ -1,7 +1,7 @@
package dependency
fun topLevelFun(){}
fun xxx_topLevelFun(){}
val topLevelVal: Int = 1
val xxx_topLevelVal: Int = 1
fun CharSequence.extFun(){}
fun CharSequence.xxx_extFun(){}
@@ -1,8 +1,7 @@
fun String.foo() {
val v = ::<caret>
val v = ::xxx_<caret>
}
// INVOCATION_COUNT: 2
// EXIST: topLevelFun
// EXIST: topLevelVal
// ABSENT: extFun
// EXIST: xxx_topLevelFun
// EXIST: xxx_topLevelVal
// ABSENT: xxx_extFun