Skip to content

[Wildcard Variables] support for avoid_shadowing_type_parameters #59497

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

Closed
Tracked by #59471
pq opened this issue Aug 6, 2024 · 1 comment
Closed
Tracked by #59471

[Wildcard Variables] support for avoid_shadowing_type_parameters #59497

pq opened this issue Aug 6, 2024 · 1 comment
Assignees
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. linter-false-positive linter-new-language-feature linter-set-core P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug

Comments

@pq
Copy link
Member

pq commented Aug 6, 2024

We're currently overreporting here:

class A<_> {
  void fn<_>() {}
}

See: https://github.com/dart-lang/language/blob/main/working/wildcards/feature-specification.md#declarations-that-are-capable-of-declaring-a-wildcard

@pq pq added type-enhancement A request for a change that isn't a bug linter-false-positive P2 A bug or feature request we're likely to work on linter-new-language-feature labels Aug 6, 2024
@pq pq self-assigned this Aug 6, 2024
copybara-service bot referenced this issue Aug 6, 2024
Fixes: https://github.com/dart-lang/linter/issues/5046

Change-Id: I689634f1f3597eeb2145a7a5f01b990d56d2c6ee
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/379001
Reviewed-by: Brian Wilkerson <[email protected]>
Commit-Queue: Phil Quitslund <[email protected]>
@pq
Copy link
Member Author

pq commented Aug 6, 2024

Fixed w/ a98ad48.

@pq pq closed this as completed Aug 6, 2024
@devoncarew devoncarew added devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. labels Nov 20, 2024
@devoncarew devoncarew transferred this issue from dart-archive/linter Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. linter-false-positive linter-new-language-feature linter-set-core P2 A bug or feature request we're likely to work on type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

2 participants