Shorten references inserts imports for global functions and properties too
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
package p
|
||||
|
||||
fun globalFun(p: Int) {}
|
||||
val globalVal: Int = 1
|
||||
@@ -0,0 +1,3 @@
|
||||
fun foo() {
|
||||
<selection>p.globalFun(p.globalVal)</selection>
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import p.globalVal
|
||||
import p.globalFun
|
||||
|
||||
fun foo() {
|
||||
globalFun(globalVal)
|
||||
}
|
||||
Reference in New Issue
Block a user