mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-27 04:01:47 +03:00
13 lines
188 B
Plaintext
13 lines
188 B
Plaintext
circuit Foo {
|
|
a: u8,
|
|
|
|
function use_a(const self) -> u8 {
|
|
return self.a + 1;
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
let f = Foo { a: 0u8 };
|
|
|
|
console.assert(1u8 == f.use_a());
|
|
} |