-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
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
bug: non-numeric type variable Error #2540
Comments
This is an interesting one. The |
Is this functionality actually required for the linked PR? fn hello<N>(array: [u1; N]) {
for i in 0..array.len() {}
} |
@jfecher, doesn't work in this case
|
@f01dab1e looks like a different case in the tecurve test. Using |
Reassigning to @michaeljklein, this is part of #4220 |
@michaeljklein Can we confirm whether we can close this? |
We used to support the |
# Description ## Problem\* Resolves #2540 ## Summary\* Fixed in #4504 ## Additional Context ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[Exceptional Case]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
* master: chore: delete `R1CSTransformer` (#4649) fix: Slice coercions (#4640) chore(ci): add warning sticky comment (#4647) fix(ssa): Fix slice intrinsic handling in the capacity tracker (#4643) chore: fix versioning of `bn254_blackbox_solver` crate (#4638) chore: fix acvm crates reporting errors as JS packages (#4637) chore: Release Noir(0.26.0) (#4526) chore: convert `BlockExpression` into a standard struct (#4623) chore(github): Improve PR template "document later" checkbox description (#4625) chore: Update integers.md to note support for Fields using `from_integer` (#4536) chore: update docs with function names to match version 0.25.0 specifications (#4466) feat: add specific error for attempting `string[x] = ".."` (#4611) fix(ssa): Use accurate type during SSA AsSlice simplficiation (#4610) feat: Sync from aztec-packages (#4581) chore: regression test for #2540 (#4602) chore: fix up benchmarking scripts (#4601) feat: Add experimental `quote` expression to parser (#4595) chore(ci): fix long debugger test times (#4599)
# Description ## Problem\* Resolves #2540 ## Summary\* Fixed in #4504 ## Additional Context ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[Exceptional Case]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
Aim
Expected Behavior
The hello function should iterate over a valid array of type u1 without panicking or producing runtime errors. In the given example, calling hello with the slice array [1, 2] should execute the loop successfully.
needed for #2473
Bug
To Reproduce
Installation Method
Compiled from source
Nargo Version
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: