leo/tests/compiler/circuits/member_static_function.leo
2021-05-12 20:47:03 +03:00

18 lines
241 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;
}