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
if
fn main(x: bool) { let foo = if x { 1 } else { 2 }; ... }
Expected foo to be a Field rather than a comptime Field since its value depends on a private input to the circuit.
foo
Field
comptime Field
foo is incorrectly typed as a comptime Field which can cause compiler panics when later attempting to use it as an array index.
The text was updated successfully, but these errors were encountered:
@jfecher whats the status of this issue?
Sorry, something went wrong.
@kevaundray still open and unchanged. I haven't worked on it in case we wanted to remove comptime after dynamic indexing is enabled.
comptime
jfecher
Successfully merging a pull request may close this issue.
Description
Aim
Expected behavior
Expected
foo
to be aField
rather than acomptime Field
since its value depends on a private input to the circuit.Bug
foo
is incorrectly typed as acomptime Field
which can cause compiler panics when later attempting to use it as an array index.The text was updated successfully, but these errors were encountered: