leo/tests/old/pass/circuits/member_variable_and_function.leo
2021-04-12 13:15:39 -07:00

16 lines
203 B
Plaintext

circuit Foo {
foo: u32,
function bar() -> u32 {
return 1u32
}
}
function main() {
const a = Foo { foo: 1 };
const b = a.foo + Foo::bar();
console.assert(b == 2u32);
}