leo/tests/pass/parse/mutability/circuit.leo

9 lines
126 B
Plaintext

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