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
Currently if the user writes array1 == array2 or array1 != array2 (given both variables are arrays), the result will never be const, even if both arrays have const elements.
In practice, this is only noticeable if the result of this expression is later casted to an integer and used as an array index:
let i = (array1 == array2) as Field;
constrain array1[i] == foo; // error: i is not const
The text was updated successfully, but these errors were encountered:
Currently if the user writes
array1 == array2
orarray1 != array2
(given both variables are arrays), the result will never be const, even if both arrays have const elements.In practice, this is only noticeable if the result of this expression is later casted to an integer and used as an array index:
The text was updated successfully, but these errors were encountered: