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