mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-30 05:02:04 +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;
|
|
} |