leo/compiler/tests/circuits/member_field.leo
2020-07-30 11:11:54 -07:00

9 lines
105 B
Plaintext

circuit Foo {
x: u32,
}
function main() {
let a = Foo { x: 1u32 };
assert_eq!(a.x, 1u32);
}