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
assert
assert_eq
Writing code using match statements, where each arm is an expression:
match _b { Foo::C(_) => assert(false), Foo::B(x) => assert_eq(x, 3), _ => assert(false), }
The program to parse
Expected an expression but found 'assert' on the match branch.
Expected an expression but found 'assert'
This can also be seen with let _ = assert(true);
let _ = assert(true);
This is confusing since these look like normal function calls but are not allowed where other function calls are.
None
No response
The text was updated successfully, but these errors were encountered:
asterite
Successfully merging a pull request may close this issue.
Aim
Writing code using match statements, where each arm is an expression:
Expected Behavior
The program to parse
Bug
Expected an expression but found 'assert'
on the match branch.This can also be seen with
let _ = assert(true);
This is confusing since these look like normal function calls but are not allowed where other function calls are.
To Reproduce
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
No response
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: