You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ dotty git:(test/repl-unused) ./bin/scala -Wunused:all
Welcome to Scala3.4.0-RC1-bin-SNAPSHOT-git-c90ad6b (20.0.1, JavaOpenJDK64-BitServerVM).
Type in expressions for evaluation. Ortry:help.
scala>importcollection.*1 warning found
--Warning:------------------------------------------------------------------------------------------------------------1|importcollection.*|^| unused import
scala>
Expectation
It's obvious that in REPL, the compiler should not warn on "bare import". (Maybe it's sufficient for compiler not to warn in a compilation unit consisting only of imports.)
It would be nice if REPL never warned on spurious synthetic imports. Not sure if Scala 3 already fixed that issue.
Many build.sbt have cruft to disable warnings in console as a workaround.
The text was updated successfully, but these errors were encountered:
Compiler version
3.3.0
Minimized code
Expectation
It's obvious that in REPL, the compiler should not warn on "bare import". (Maybe it's sufficient for compiler not to warn in a compilation unit consisting only of imports.)
It would be nice if REPL never warned on spurious synthetic imports. Not sure if Scala 3 already fixed that issue.
Many
build.sbt
have cruft to disable warnings inconsole
as a workaround.The text was updated successfully, but these errors were encountered: