-
Notifications
You must be signed in to change notification settings - Fork 21
[2.13.15] False negatives for unused pattern vars #13035
New issue
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
Comments
Thanks for the report and for using This is a feature, never to warn on the "canonical pattern". It's mentioned in the comment at scala/scala#10812 but I don't see where lrytz proposed it. Possibly, the idea was inherited from The experience in the scala/scala code base was that warning on The previous workaround was So for warning, the idiom works like A |
Oh, thanks! Do you know by any chance if there is a plan to forward-port this change to Scala 3 for consistency? I guess not - I couldn't find any related ticket. |
FTR, it's now on 3.7.0 via scala/scala3#20894 |
It seems that 2.13.15 no longer reports unused pattern vars when they have the same name as the attributes.
Reproduction steps
Problem
Actual
No warning
Expected
Warnings like in 2.13.14
The text was updated successfully, but these errors were encountered: