mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-22 17:51:39 +03:00
15 lines
171 B
Plaintext
15 lines
171 B
Plaintext
|
circuit Foo {
|
||
|
x: u32
|
||
|
|
||
|
function new() -> Self {
|
||
|
let new: Self = Self {
|
||
|
x: 1u32
|
||
|
};
|
||
|
|
||
|
return new
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function main() {
|
||
|
let foo: Self = Foo::new();
|
||
|
}
|