leo/compiler/tests/mutability/circuit.leo
2020-07-16 20:47:47 -07:00

9 lines
118 B
Plaintext

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