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
Trying to come up with a simpler example for #4497 I run into this other bug.
Expected Behavior
While modifying my example to try to trigger the bug in #4497 I arrived at this. The addition of the N type argument triggered this bug. I'm not entirely sure if the following code should compile or not given that N cannot be inferred, but is also unused.
error: Internal Consistency Evaluators Errors:
This is likely a bug. Consider opening an issue at https://github.com/noir-lang/noir/issues
┌─ std/collections/bounded_vec.nr:1:1
│
1 │ struct BoundedVec<T, MaxLen> {
│ - Length of generic array could not be determined.
│
= Call stack:
1. std/collections/bounded_vec.nr:9:31
Installation Method
Compiled from source
Nargo Version
nargo version = 0.24.0 noirc version = 0.24.0+f3dfb453df81eee0f7c6d8dc37f998cd14d75004 (git version hash: f3dfb453df81eee0f7c6d8dc37f998cd14d75004, is dirty: false)
The text was updated successfully, but these errors were encountered:
$ nargo compile
error: Type annotation needed
┌─ src/main.nr:21:34
│
21 │ let parameters = Parameters::new();
│ --- Could not determine type of generic argument
│
= Call stack:
1. src/main.nr:21:34
Aborting due to 1 previous error
Aim
Trying to come up with a simpler example for #4497 I run into this other bug.
Expected Behavior
While modifying my example to try to trigger the bug in #4497 I arrived at this. The addition of the
N
type argument triggered this bug. I'm not entirely sure if the following code should compile or not given thatN
cannot be inferred, but is also unused.Bug
Installation Method
Compiled from source
Nargo Version
nargo version = 0.24.0 noirc version = 0.24.0+f3dfb453df81eee0f7c6d8dc37f998cd14d75004 (git version hash: f3dfb453df81eee0f7c6d8dc37f998cd14d75004, is dirty: false)
The text was updated successfully, but these errors were encountered: