Skip to content

[Wildcard Variables] private_optional_parameter support #56381

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 #55680
pq opened this issue Aug 5, 2024 · 1 comment
Closed
Tracked by #55680

[Wildcard Variables] private_optional_parameter support #56381

pq opened this issue Aug 5, 2024 · 1 comment
Assignees
Labels
devexp-warning Issues with the analyzer's Warning codes feature-wildcard-variables Implementation of the wildcard variables feature legacy-area-analyzer Use area-devexp instead. 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 5, 2024

Today,

void f({String? _}) { }

produces a private_optional_parameter diagnostic. I expect this should be legal with wildcards and no longer produce this warning?

EDIT: Similarly for:

void f({required String _}) { }

/cc @kallentu @lrhn @bwilkerson

@pq pq changed the title private_optional_parameter support for wildcards [Wildcard Variables] private_optional_parameter support Aug 5, 2024
@pq pq self-assigned this Aug 5, 2024
@pq pq added legacy-area-analyzer Use area-devexp instead. devexp-warning Issues with the analyzer's Warning codes feature-wildcard-variables Implementation of the wildcard variables feature P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) type-enhancement A request for a change that isn't a bug and removed type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Aug 5, 2024
@pq
Copy link
Member Author

pq commented Aug 5, 2024

@pq pq closed this as completed Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devexp-warning Issues with the analyzer's Warning codes feature-wildcard-variables Implementation of the wildcard variables feature legacy-area-analyzer Use area-devexp instead. 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

1 participant