mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-24 01:54:23 +03:00
16 lines
211 B
Plaintext
16 lines
211 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
*/
|
|
|
|
circuit Foo {
|
|
x: u32
|
|
}
|
|
|
|
// Using let makes a circuit variable mutable.
|
|
function main() {
|
|
let a = Foo { x: 1 };
|
|
a.x = 0;
|
|
|
|
console.assert(a.x == 0u32);
|
|
} |