Compiler version
3.8.0-RC2
Minimized code
package bar{
export scala.util.Random
}
package foo{
import bar.Random
def main() = {
println(Random(null))
}
}
Output
[warn] /Users/lihaoyi/Github/scala3/foo.scala:5:14
[warn] unused import
[warn] import bar.Random
[warn] ^^^^^^
Expectation
I am using Random, so the import is not unused. If I remove the import, compilation fails
This is causing problems trying to adopt creator application syntax in Mill, since it causes scalafix to incorrectly remove the relevant imports, breaking the code com-lihaoyi/mill#6257