Shorten references inserts imports for global functions and properties too
This commit is contained in:
+4
-2
@@ -1,6 +1,8 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test = ""
|
||||
println(b.test)
|
||||
test = ""
|
||||
println(test)
|
||||
}
|
||||
|
||||
+3
-1
@@ -1,7 +1,9 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
class Test {
|
||||
fun foo() {
|
||||
b.test()
|
||||
test()
|
||||
}
|
||||
}
|
||||
|
||||
+4
-2
@@ -1,6 +1,8 @@
|
||||
package a
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test = ""
|
||||
println(b.test)
|
||||
test = ""
|
||||
println(test)
|
||||
}
|
||||
|
||||
+4
-2
@@ -1,6 +1,8 @@
|
||||
package c
|
||||
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test = ""
|
||||
println(b.test)
|
||||
test = ""
|
||||
println(test)
|
||||
}
|
||||
|
||||
+3
-2
@@ -1,8 +1,9 @@
|
||||
package c
|
||||
|
||||
import a.*
|
||||
import b.test
|
||||
|
||||
fun bar() {
|
||||
b.test = ""
|
||||
println(b.test)
|
||||
test = ""
|
||||
println(test)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user