mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-27 19:41:50 +03:00
14 lines
191 B
Plaintext
14 lines
191 B
Plaintext
circuit Foo {
|
|
f: u32,
|
|
|
|
function bar(self) -> u32 {
|
|
return self.f
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
let a = Foo { f: 1u32 };
|
|
let b = a.bar();
|
|
|
|
console.assert(b == 1u32);
|
|
} |