Mark Haxe Class for forced extend?

Viewed 204

Is there a compiler meta for Class declaration, that prevents creating Class instance before extending it? In other words - some sort of opposite of @:final meta.

Like so (last line of code):

class A {
    // ...
}

class B extends A {
    // ...
}

// ...
var b = new B(); // OK
var a = new A(); // induce compiler-error
3 Answers
Related