leo/compiler/tests/circuits/member_field_and_function.leo

13 lines
175 B
Plaintext
Raw Normal View History

2020-06-20 11:40:56 +03:00
circuit Foo {
2020-06-29 23:05:41 +03:00
foo: u32,
2020-06-20 11:40:56 +03:00
static function bar() -> u32 {
return 0
}
}
function main() -> u32 {
let f = Foo { foo: 1 };
return f.foo + Foo::bar()
}