-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Bogus unnecessary_this with pattern matching and shadowing #59152
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
linter-false-positive
linter-set-recommended
P1
A high priority bug; for example, a single project is unusable or has many test failures
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Comments
srawlins
added
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
P3
A lower priority bug or feature request
labels
May 23, 2023
pq
added
P1
A high priority bug; for example, a single project is unusable or has many test failures
and removed
P3
A lower priority bug or feature request
labels
May 23, 2023
Good catch. Taking a look now. Thanks! |
It looks like the issue is percolating up from analyzer. Tracking in #52486 |
@pq Is there an ETA on this ending up in a released Dart version? It looks like Dart 3.0.7 is still surfacing the bogus lint. |
nex3
referenced
this issue
in sass/dart-sass
Aug 2, 2023
nex3
referenced
this issue
in sass/dart-sass
Aug 2, 2023
My understanding is that a Dart 3.1 release is slated for the next few weeks. (@itsjustkevin could confirm?) |
nex3
referenced
this issue
in sass/dart-sass
Aug 21, 2023
nex3
referenced
this issue
in sass/dart-sass
Aug 21, 2023
This was referenced Oct 14, 2023
devoncarew
added
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
labels
Nov 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
linter-false-positive
linter-set-recommended
P1
A high priority bug; for example, a single project is unusable or has many test failures
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
For the code below:
the 3.0.0 analyzer will print
This is incorrect. The
this.
is necessary to disambiguate the containing class'svalue
field from thevalue
variable bound by theswitch
expression.The text was updated successfully, but these errors were encountered: