mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-30 23:33:27 +03:00
13 lines
178 B
Plaintext
13 lines
178 B
Plaintext
circuit Foo {
|
|
x: u32,
|
|
|
|
function echo(self) -> u32 {
|
|
return self.x
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
let a = Foo { x: 1u32 };
|
|
|
|
console.assert(a.echo() == 1u32);
|
|
} |