You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens because we use a Separated grammar node parsing an Optional item. Since a missing item is treated as a succesful parse, this doesn't fail.
We should make sure to support parsing (, ...) with at least a single item and/or comma.
For more context:
() = () is parsed by Slang as correct but solc rejects it - tuple deconstruction can't be empty
(,) = () is rejected by solc at parse level; at least one item should not be skipped/"empty"
(a,,),(,a,),(,,a) are all valid deconstructions
The text was updated successfully, but these errors were encountered:
This happens because we use a Separated grammar node parsing an Optional item. Since a missing item is treated as a succesful parse, this doesn't fail.
We should make sure to support parsing
(, ...)
with at least a single item and/or comma.For more context:
() = ()
is parsed by Slang as correct but solc rejects it - tuple deconstruction can't be empty(,) = ()
is rejected by solc at parse level; at least one item should not be skipped/"empty"(a,,)
,(,a,)
,(,,a)
are all valid deconstructionsThe text was updated successfully, but these errors were encountered: