class MyClass{
someMethod(): MyClass{
return new MyClass();
}
}
How to reference current class, without explicitly passing the name?
Something like this:
class MyClass{
someMethod(): self{
return new self();
}
}
Obviously that doesn't work, but you get the idea.