mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-25 03:04:13 +03:00
15 lines
201 B
Plaintext
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();
|
|
} |