KT-6534 Code completion of global function does not insert import in very specific context

#KT-6534 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-12-25 18:39:18 +03:00
parent eca8ed2768
commit b94e9e63c3
7 changed files with 50 additions and 20 deletions
@@ -0,0 +1,9 @@
object XXX {
fun authorize(handler: String.() -> Unit) { }
}
fun f() {
XXX.authorize {
globalFun<caret>
}
}
@@ -0,0 +1,3 @@
package ppp
fun globalFun(){}
@@ -0,0 +1,11 @@
import ppp.globalFun
object XXX {
fun authorize(handler: String.() -> Unit) { }
}
fun f() {
XXX.authorize {
globalFun()<caret>
}
}