leo/compiler/tests/circuits/self_member_invalid.leo

12 lines
168 B
Plaintext
Raw Normal View History

circuit Foo {
f: u32,
function bar() -> u32 {
return f;
}
}
function main() -> u32 {
const foo = Foo { f: 1u32 };
const err = foo.bar();
}