Kanon
Kanon copied to clipboard
Is inheritance supported?
With this code
class C { }
class D extends C {
constructor() {}
}
var v = new D()
I get an error Error?: |this| used uninitialized in D class constructor
It reminds me a restriction in Java, where you should write a call to the super-constructor at the beginning of a constructor. You are also not safe to access fields of this
before finishing the call to the super-constructor.