-
Notifications
You must be signed in to change notification settings - Fork 1.1k
False positive unused given in extensions #23125
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
I'll take a second look, as it should not warn in either location (for any type). |
Maybe same issue in sbt 2.x with Scala 3.7.0
|
On first glance, I missed that there is a second extension method in the "collective". That is really just a second method that takes the "shared" parameter, and it is unused there. This works as expected. The latest lint will not warn about a "marker" trait, however, so |
I'll submit a PR so that the message looks like
That is for any extension method; my first idea was to add words when the param is on a different line from the owner method, but I was lazy. |
Fixes #23125 Make the message more verbose by stating the extension method name. This could be improved by only adding words if the param pos is on a different line from the method pos.
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.7.0
3.7.1-RC1
Fixed in 3.7.2-RC1-NIGHTLY
Bisect points it was fixed in 32defdf
Minimized code
Output
Expectation
Should not warn. Bisected fix should be backported to 3.7.1-RC2 and regression test should be added
The text was updated successfully, but these errors were encountered: