mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-28 01:01:53 +03:00
19 lines
229 B
Plaintext
19 lines
229 B
Plaintext
circuit Foo {
|
|
x: u32;
|
|
|
|
function new() -> Self {
|
|
let new: Self = Self {
|
|
x: 1u32
|
|
};
|
|
|
|
return new;
|
|
}
|
|
|
|
function etc() {
|
|
y[Self {x: 0}.func()] += 2;
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
let foo: Foo = Foo::new();
|
|
} |