mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-27 04:01:47 +03:00
16 lines
204 B
Plaintext
16 lines
204 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);
|
|
}
|