mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-18 15:31:32 +03:00
14 lines
164 B
Plaintext
14 lines
164 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
*/
|
|
|
|
circuit Foo {
|
|
x: u32;
|
|
}
|
|
|
|
// const variable is immutable
|
|
function main() {
|
|
const a = Foo { x: 1 };
|
|
a.x = 0;
|
|
} |