leo/tests/compiler/circuits/member_variable.leo
2021-04-19 18:08:14 -07:00

9 lines
113 B
Plaintext

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