mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-18 15:31:32 +03:00
14 lines
195 B
Plaintext
14 lines
195 B
Plaintext
circuit Foo {
|
|
f: u32,
|
|
|
|
function bar(self) -> u32 {
|
|
return self.f
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
const a = Foo { f: 1u32 };
|
|
const b = a.bar();
|
|
|
|
console.assert(b == 1u32);
|
|
} |