leo/compiler/tests/circuits/self_no_member_fail.leo

10 lines
151 B
Plaintext

circuit Foo {
function bar() -> u32 {
return self.f
}
}
function main() -> u32 {
let circuit = Foo { };
return circuit.bar()
}