leo/asg/tests/pass/circuits/member_variable.leo

9 lines
113 B
Plaintext

circuit Foo {
x: u32,
}
function main() {
const a = Foo { x: 1u32 };
console.assert(a.x == 1u32);
}