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
Trying to construct a struct type by providing it the incorrect number of fields (on accident):
struct TwoFields { first: Field, second: Field, } fn main() { let _foo = TwoFields { first: 0 }; }
The compiler should issue an error explaining that the second field is missing from the constructor.
second
Instead, the compiler continues until type checking fails an assert check for the number of fields.
None
No response
The text was updated successfully, but these errors were encountered:
Fix #1028
5f5769f
fix: Avoid asserting in typechecker if struct field count is not corr…
b3d1d7f
…ect (#1036) Fix #1028
jfecher
Successfully merging a pull request may close this issue.
Aim
Trying to construct a struct type by providing it the incorrect number of fields (on accident):
Expected behavior
The compiler should issue an error explaining that the
second
field is missing from the constructor.Bug
Instead, the compiler continues until type checking fails an assert check for the number of fields.
To reproduce
Installation method
None
Nargo version
No response
@noir-lang/noir_wasm version
No response
@noir-lang/barretenberg version
No response
@noir-lang/aztec_backend version
No response
Additional context
No response
Submission Checklist
The text was updated successfully, but these errors were encountered: