Skip to content

[Wildcard Variables] private_optional_parameter support #56381

@pq

Description

@pq

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

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work ondevexp-warningIssues with the analyzer's Warning codesfeature-wildcard-variablesImplementation of the wildcard variables featurelegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions