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
@@ -1,5 +1,7 @@
package a
import b.test
fun bar() {
b.test()
test()
}
@@ -1,7 +1,9 @@
package a
import b.test
class Test {
fun foo() {
b.test()
test()
}
}
@@ -1,5 +1,7 @@
package a
import b.test
fun bar() {
b.test()
test()
}
@@ -1,5 +1,7 @@
package c
import b.test
fun bar() {
b.test()
test()
}
@@ -1,7 +1,8 @@
package c
import a.*
import b.test
fun bar() {
b.test()
test()
}