2021-01-25 18:17:42 +03:00
|
|
|
circuit Foo {
|
|
|
|
function echo(x: u32) -> u32 {
|
|
|
|
return x
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function main() {
|
2021-03-18 22:19:07 +03:00
|
|
|
const a = Foo { };
|
|
|
|
const err = a.echo(1u32); // echo is a static function and must be accessed using `::`
|
2021-01-25 18:17:42 +03:00
|
|
|
}
|