mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-30 13:12:53 +03:00
12 lines
172 B
Plaintext
12 lines
172 B
Plaintext
|
circuit Foo {
|
||
|
f: u32,
|
||
|
|
||
|
function bar() -> u32 {
|
||
|
return self.f
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function main() -> u32 {
|
||
|
let circuit = Foo { f: 1u32 };
|
||
|
return circuit.bar()
|
||
|
}
|