mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-30 23:33:27 +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);
|
|
} |