leo/compiler/tests/circuits/self_member.leo

12 lines
172 B
Plaintext
Raw Normal View History

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