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.7.0-RC1-bin-20250306-73ba485-NIGHTLY
def test[I, A](in: I)( run: I => Either[Throwable, A], onErr: Throwable => Throwable = identity[Throwable] ): Either[Throwable, A] = run(in) match { case Left(t) => Left(onErr(t)) case r @ Right(_) => r }
-- [E198] Unused Symbol Warning: /Users/matt/scala3.7-nightly-unused/src/main/scala/example/Test.scala:1:15 ------------ 1 |def test[I, A](in: I)( | ^^ | unused explicit parameter
in should not be reported unused since it's passed to run. If I remove the default param for onErr then it compiles without warning
in
run
onErr
The text was updated successfully, but these errors were encountered:
Possibly related to (or a duplicate of) #22746
Sorry, something went wrong.
Example is included in test for the other ticket.
Ignore params to default arg getters (#22749)
0bbd04f
Fixes #22746 Fixes #22748 Default arg getters are defined with dependencies they don't use.
Successfully merging a pull request may close this issue.
Compiler version
3.7.0-RC1-bin-20250306-73ba485-NIGHTLY
Minimized code
Output
Expectation
in
should not be reported unused since it's passed torun
. If I remove the default param foronErr
then it compiles without warningThe text was updated successfully, but these errors were encountered: