Organize imports doesn't remove local import in case a file wide import exists
import S.A
object S {
val A = 0
val B = 0
val C = 0
}
object X {
val n = A
def f = {
import S.A
import S.B
import S.C
A+B
}
}
organizing imports results in
import S.A
object S {
val A = 0
val B = 0
val C = 0
}
object X {
val n = A
def f = {
import S.A
import S.B
A+B
}
}
it misses that the import of A inside of f can be removed
Leave a comment
solved in latest nightly