leo/compiler/tests/circuits/mut_variable_fail.leo

9 lines
92 B
Plaintext
Raw Normal View History

circuit Foo {
a: u8,
}
function main() {
2020-12-01 23:37:44 +03:00
let f = Foo { a: 0u8 };
f.a = 1u8;
}