leo/asg/tests/fail/mutability/circuit.leo

9 lines
127 B
Plaintext

// Circuits are immutable by default.
circuit Foo {
x: u32;
}
function main() {
const a = Foo { x: 1 };
a.x = 0;
}