mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-18 23:02:35 +03:00
16 lines
202 B
Plaintext
16 lines
202 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Fail
|
|
*/
|
|
|
|
circuit Foo {
|
|
// static is deprecated
|
|
static function new() -> Self {
|
|
return Self { };
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
const a = Foo::new();
|
|
}
|