2021-01-25 18:17:42 +03:00
|
|
|
circuit Foo {
|
|
|
|
function echo(x: u32) -> u32 {
|
2021-04-14 23:59:07 +03:00
|
|
|
return x;
|
2021-01-25 18:17:42 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function main() {
|
2021-03-18 22:19:07 +03:00
|
|
|
const a = Foo::echo(1u32);
|
2021-01-25 18:17:42 +03:00
|
|
|
|
|
|
|
console.assert(a == 1u32);
|
|
|
|
}
|