leo/asg/tests/fail/mutability/circuit.leo
2021-01-25 07:19:38 -08:00

9 lines
124 B
Plaintext

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