leo/tests/compiler/circuits/inline_member_pass.leo

13 lines
187 B
Plaintext
Raw Normal View History

2021-02-05 00:18:28 +03:00
circuit Foo {
x: u8
function new(x: u8) -> Self {
return Self { x };
2021-02-05 00:18:28 +03:00
}
}
function main() {
const x: u8 = 1;
const a = Foo { x };
const b = Foo::new(x);
2021-02-05 00:18:28 +03:00
}