KT-6534 Code completion of global function does not insert import in very specific context
#KT-6534 Fixed
This commit is contained in:
@@ -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>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user