mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-30 13:12:53 +03:00
16 lines
199 B
Plaintext
16 lines
199 B
Plaintext
|
circuit Foo {
|
||
|
foo: u32,
|
||
|
|
||
|
function bar() -> u32 {
|
||
|
return 1u32
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function main() {
|
||
|
let a = Foo { foo: 1 };
|
||
|
|
||
|
let b = a.foo + Foo::bar();
|
||
|
|
||
|
console.assert(b == 2u32);
|
||
|
}
|