This usage before super call #4211
Labels
Breaking Change
Would introduce errors in existing code
Bug
A bug in TypeScript
ES6
Relates to the ES6 Spec
Fixed
A PR has been merged for this issue
Milestone
ES6 disallow to use this before super call.
The line "this.vv = 111;" must be after super statement.
The super statement also cannot contain this usage.
Compilation to ES6 gives:
So even if TS wants to relax "this usage before super" (which i doubt), then it must fix in generated ES6 code.
The text was updated successfully, but these errors were encountered: