mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-20 16:11:35 +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);
|
|
} |