-
Notifications
You must be signed in to change notification settings - Fork 19
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
Forbid some empty separated lists in v2 #667
Conversation
See https://docs.soliditylang.org/en/latest/grammar.html#a4.SolidityParser.tupleExpression Unfortunately, we use `Separated(Optional(...))` in both definitions, which wrongly accepts an empty list in this specific case.
|
...testing/snapshots/cst_output/TupleDeconstructionStatement/empty/generated/0.4.11-success.yml
Outdated
Show resolved
Hide resolved
crates/solidity/testing/snapshots/cst_output/UsingDirective/destructure_empty/input.sol
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple of questions
Part of #652
These are a bug-fixes along with regression tests added for each case, we use a definition from v0/v1 for these.