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

16 lines
198 B
Plaintext

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