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
Expected the program to compile successfully or fail with a clear error
Bug
Compilation fails with a message that the Field is too large to be an array length, but it's not used as an array length:
❯ ~/.nargo/bin/nargo compile
warning: unused variable C
┌─ src/main.nr:12:9
│
12 │ let C = foo::<A>();
│ - unused variable
│
error: Integer too large to be evaluated to an array-length
┌─ src/main.nr:7:19
│
7 │ global A: Field = 4294967297;
│ ---------- Array-lengths may be a maximum size of usize::MAX, including intermediate calculations
│
Aborting due to 1 previous error
To Reproduce
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
nargo version = 0.34.0 noirc version = 0.34.0+5598059576c6cbc72474aff4b18bc5e4bb9f08e1 (git version hash: 5598059, is dirty: false)
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:
Aim
Attempted to use a
Field
larger thanu32::MAX
as a numeric generic:Expected Behavior
Expected the program to compile successfully or fail with a clear error
Bug
Compilation fails with a message that the
Field
is too large to be an array length, but it's not used as an array length:To Reproduce
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
nargo version = 0.34.0 noirc version = 0.34.0+5598059576c6cbc72474aff4b18bc5e4bb9f08e1 (git version hash: 5598059, is dirty: false)
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: