leo/tests/compiler/structs/member_variable.leo
2022-10-05 16:53:49 -07:00

18 lines
266 B
Plaintext

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