leo/compiler/tests/circuits/self_member.leo
2020-08-16 17:20:47 -07:00

14 lines
187 B
Plaintext

circuit Foo {
f: u32,
function bar() -> u32 {
return self.f
}
}
function main() {
let a = Foo { f: 1u32 };
let b = a.bar();
console.assert(b == 1u32);
}