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
When I try to compile the following code:
fn main(args: [Field; 2]) { /// Safety: what? unsafe { store(args) }; } pub unconstrained fn store(_: [Field]) {}
I get the following panic:
When I make the function constrained:
fn main(args: [Field; 2]) { store(args); } pub fn store(_: [Field]) {}
all compiles fine.
So the bug seems to be present specifically when casting to a slice which is an argument to an unconstrained function.
nargo version = 1.0.0-beta.1 noirc version = 1.0.0-beta.1+56ed6e16b975f91a (git version hash: 56ed6e16b975f91a, is dirty: false)
The text was updated successfully, but these errors were encountered:
guipublic
Successfully merging a pull request may close this issue.
Bug
When I try to compile the following code:
I get the following panic:
When I make the function constrained:
all compiles fine.
So the bug seems to be present specifically when casting to a slice which is an argument to an unconstrained function.
Nargo Version
nargo version = 1.0.0-beta.1 noirc version = 1.0.0-beta.1+56ed6e16b975f91a (git version hash: 56ed6e16b975f91a, is dirty: false)
The text was updated successfully, but these errors were encountered: