leo/compiler/tests/circuits/self_member_fail.leo

12 lines
159 B
Plaintext
Raw Normal View History

circuit Foo {
f: u32,
function bar() -> u32 {
return f
}
}
function main() -> u32 {
2020-07-17 06:47:47 +03:00
let foo = Foo { f: 1u32 };
return foo.bar()
}