2020-07-03 23:35:46 +03:00
|
|
|
circuit Foo {
|
|
|
|
f: u32,
|
|
|
|
|
|
|
|
function bar() -> u32 {
|
2021-04-14 23:59:07 +03:00
|
|
|
return f;
|
2020-07-03 23:35:46 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function main() -> u32 {
|
2021-03-18 22:19:07 +03:00
|
|
|
const foo = Foo { f: 1u32 };
|
|
|
|
const err = foo.bar();
|
2020-07-03 23:35:46 +03:00
|
|
|
}
|