Optimize Imports: do not keep imports of unimportable entities

This commit is contained in:
Pavel V. Talanov
2014-03-05 17:59:57 +04:00
parent c87cc0dde1
commit 809be9b069
7 changed files with 64 additions and 17 deletions
@@ -0,0 +1,10 @@
package test
import dependency.*
fun f(a: A, t: T) {
a.f()
a.p
t.f
t.p
}
@@ -0,0 +1,15 @@
package dependency
class A {
fun f() {
}
val p: Int = 1
}
trait T {
fun f() {
}
val p: Int = 1
}
@@ -0,0 +1,14 @@
package test
import dependency.*
import dependency.A.f
import dependency.A.p
import dependency.T.f
import dependency.T.p
fun f(a: A, t: T) {
a.f()
a.p
t.f
t.p
}