leo/compiler/tests/circuits/member_field_and_function.leo
2020-06-20 01:40:56 -07:00

13 lines
174 B
Plaintext

circuit Foo {
foo: u32
static function bar() -> u32 {
return 0
}
}
function main() -> u32 {
let f = Foo { foo: 1 };
return f.foo + Foo::bar()
}