mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-24 18:12:28 +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;
|
|
} |