mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 03:04:13 +03:00
17 lines
212 B
Plaintext
17 lines
212 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
*/
|
|
|
|
circuit Foo {
|
|
f: u32,
|
|
|
|
function bar() -> u32 {
|
|
return f;
|
|
}
|
|
}
|
|
|
|
function main() -> u32 {
|
|
const foo = Foo { f: 1u32 };
|
|
const err = foo.bar();
|
|
} |