mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-22 09:01:35 +03:00
23 lines
267 B
Plaintext
23 lines
267 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file: input/dummy.in
|
|
*/
|
|
|
|
circuit Foo {
|
|
x: u32
|
|
|
|
function foo(mut self) {
|
|
self.x = 10;
|
|
}
|
|
}
|
|
|
|
|
|
function main(y: bool) -> bool {
|
|
let a = Foo { x: 1 };
|
|
|
|
a.foo();
|
|
|
|
return a.x == 10u32 == y;
|
|
}
|