mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 19:22:01 +03:00
16 lines
200 B
Plaintext
16 lines
200 B
Plaintext
circuit Foo {
|
|
foo: u32,
|
|
|
|
static function bar() -> u32 {
|
|
return 1u32
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
let a = Foo { foo: 1 };
|
|
|
|
let b = a.foo + Foo::bar();
|
|
|
|
assert_eq!(b, 2u32);
|
|
}
|