leo/tests/compiler/circuits/member_static_function.leo
2021-07-01 13:40:29 -07:00

18 lines
243 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file: input/dummy.in
*/
circuit Foo {
function echo(x: u32) -> u32 {
return x;
}
}
function main(y: bool) -> bool {
const a = Foo::echo(1u32);
return (a == 1u32) == y;
}