mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-22 09:41:37 +03:00
13 lines
186 B
Plaintext
13 lines
186 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);
|
|
} |