You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
With this code
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.The text was updated successfully, but these errors were encountered: