leo/tests/compiler/circuits/self_circuit.leo
2021-05-05 11:37:51 +03:00

15 lines
201 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
circuit Foo {
// static is deprecated
static function new() -> Self {
return Self { };
}
}
function main() {
const a = Foo::new();
}