mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-21 08:31:33 +03:00
9 lines
124 B
Plaintext
9 lines
124 B
Plaintext
|
// Circuits are immutable by default.
|
||
|
circuit Foo {
|
||
|
x: u32
|
||
|
}
|
||
|
|
||
|
function main() {
|
||
|
let a = Foo { x: 1 };
|
||
|
a.x = 0;
|
||
|
}
|