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 use a global constant as a numeric generic for a struct (this works with arrays but not other types):
global MY_GLOBAL = 2; struct Foo { myvec: BoundedVec<Field, MY_GLOBAL>, }
The program to compile successfully
The compiler issues an error message:
error: expected type got global ┌─ /.../example.nr:4:30 │ 4 │ myvec: BoundedVec<Field, MY_GLOBAL>, │ ---------
None
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Aim
Trying to use a global constant as a numeric generic for a struct (this works with arrays but not other types):
Expected behavior
The program to compile successfully
Bug
The compiler issues an error message:
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: