leo/compiler/tests/canonicalization/big_self_outside_circuit_fail.leo

15 lines
173 B
Plaintext

circuit Foo {
x: u32;
function new() -> Self {
let new: Self = Self {
x: 1u32
};
return new;
}
}
function main() {
let foo: Self = Foo::new();
}