mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-18 23:41:38 +03:00
14 lines
181 B
Plaintext
14 lines
181 B
Plaintext
circuit Foo {
|
|
f: u32,
|
|
|
|
function bar() -> u32 {
|
|
return self.f
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
let a = Foo { f: 1u32 };
|
|
let b = a.bar();
|
|
|
|
assert_eq!(b, 1u32);
|
|
} |