leo/tests/compiler/circuits/inline_member_pass.leo
2021-04-19 18:08:14 -07:00

13 lines
187 B
Plaintext

circuit Foo {
x: u8
function new(x: u8) -> Self {
return Self { x };
}
}
function main() {
const x: u8 = 1;
const a = Foo { x };
const b = Foo::new(x);
}