Skip to content
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

Wildcards Update - Removed no defaults needed for unnamed optional wildcard parameters #2729

Closed
kallentu opened this issue Jun 27, 2024 · 1 comment
Assignees

Comments

@kallentu
Copy link
Member

We revoked allowing unnamed optional wildcard parameters to not have a default value.
So the following is an error:

int foo([int _]) => 2;
//           ^

Not sure if there were tests made for this one spec change, but we reverted this from the spec and I want to make sure that the co19 tests aren't testing for this behaviour. Feel free to close if this is already the case.

Issue of this change: dart-lang/language#3807

cc. @sgrekhov @eernstg

@sgrekhov
Copy link
Contributor

Fixed by #2730

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants