We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if
switch
We allow code with a unit switch with a trailing if, e.g.,
public type X = unit { switch { -> a: b"A"; -> b: b"B"; -> c: b"C"; } if(False) ; };
The condition is however silently ignored; for above False I would expect X to consume no data but it does
False
X
$ printf 'A' | spicy-dump -d foo.spicy foo::X { a: A }
We should either interpret such conditions correctly or reject them outright.
The text was updated successfully, but these errors were encountered:
75a78da
Merge remote-tracking branch 'origin/topic/robin/gh-1759-switch-if'
5ff0cfe
* origin/topic/robin/gh-1759-switch-if: Fix `if`-condition with `switch` parsing. Fix clang-tidy.
rsmmr
Successfully merging a pull request may close this issue.
We allow code with a unit
switch
with a trailingif
, e.g.,The condition is however silently ignored; for above
False
I would expectX
to consume no data but it doesWe should either interpret such conditions correctly or reject them outright.
The text was updated successfully, but these errors were encountered: