mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-28 12:01:54 +03:00
13 lines
180 B
Plaintext
13 lines
180 B
Plaintext
circuit Foo {
|
|
x: u32,
|
|
|
|
function echo(self) -> u32 {
|
|
return self.x
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
const a = Foo { x: 1u32 };
|
|
|
|
console.assert(a.echo() == 1u32);
|
|
} |