leo/compiler/tests/circuits/self_member_invalid.leo
2020-07-30 11:11:54 -07:00

12 lines
163 B
Plaintext

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