We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.3.0-RC4 3.3.1-RC1-bin-20230418-bd0858e-NIGHTLY
//> using scala "3.3.0-RC4" //> using option "-Wunused:all" object events { final val POLLIN = 0x001 } def withShort(v: Short): Unit = ??? def withInt(v: Int): Unit = ??? def usage() = import events.POLLIN // reports unused def v: Short = POLLIN println(v) def usage2() = import events.POLLIN // reports unused withShort(POLLIN) def usage3() = import events.POLLIN // does not report unused withInt(POLLIN)
Compiling project (Scala 3.3.0-RC4, JVM) [warn] ./test.scala:12:17 [warn] unused import [warn] import events.POLLIN // reports unused [warn] ^^^^^^ [warn] ./test.scala:17:17 [warn] unused import [warn] import events.POLLIN // reports unused [warn] ^^^^^^ Compiled project (Scala 3.3.0-RC4, JVM)
Should not report as unsued
The text was updated successfully, but these errors were encountered:
9cb97ec
Successfully merging a pull request may close this issue.
Compiler version
3.3.0-RC4
3.3.1-RC1-bin-20230418-bd0858e-NIGHTLY
Minimized code
Output
Expectation
Should not report as unsued
The text was updated successfully, but these errors were encountered: