leo/compiler/tests/circuits/inline_member_pass.leo
2021-02-04 13:18:28 -08:00

13 lines
180 B
Plaintext

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