Shorten references inserts imports for global functions and properties too

This commit is contained in:
Valentin Kipyatkov
2015-02-13 00:09:04 +03:00
parent 664e2781e8
commit 20cf100714
34 changed files with 105 additions and 61 deletions
@@ -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)
}