leo/asg/tests/fail/circuits/self_member_invalid.leo

12 lines
163 B
Plaintext
Raw Normal View History

2021-01-25 18:17:42 +03:00
circuit Foo {
f: u32,
function bar() -> u32 {
return f
}
}
function main() -> u32 {
let foo = Foo { f: 1u32 };
let err = foo.bar();
}