ImportOptimizer: add cases for unresolved references

Part of #KT-31331
This commit is contained in:
Dmitry Gridin
2020-06-17 21:13:25 +07:00
parent 4de582564c
commit 10c62b8d77
8 changed files with 58 additions and 12 deletions
@@ -1,5 +1,6 @@
import test1.MyClass
import test1.iterator
import test2.iterator
fun foo() {
val s = MyClass()
@@ -0,0 +1,11 @@
import test1.MyClass
import test1.iterator
import test2.iterator
import test3.notIterator
import test1.invoke
import test4.*
fun foo() {
val s = MyClass()
for (i in s) {}
}
@@ -0,0 +1,10 @@
import test1.MyClass
import test1.invoke
import test1.iterator
import test2.iterator
import test4.*
fun foo() {
val s = MyClass()
for (i in s) {}
}