mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-19 15:41:36 +03:00
23 lines
297 B
Plaintext
23 lines
297 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: input/dummy.in
|
|
*/
|
|
|
|
circuit Foo {
|
|
a: u8;
|
|
|
|
function set_a(mut self, new: u8) {
|
|
self.a = new;
|
|
}
|
|
}
|
|
|
|
function main(y: bool) -> bool {
|
|
let f = Foo { a: 0u8 };
|
|
|
|
f.set_a(1u8);
|
|
f.set_a(2u8);
|
|
|
|
return f.a == 2u8 == y;
|
|
}
|