-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class Declaration Extends Null Can't have super-call #6968
Comments
@yuit is this a spec bug or an implementation bug? |
@RyanCavanaugh yes, it's a spec bug before. But the spec has been fixed for months. See tc39/ecma262#543 And now Typescript is violating the spec. |
this issue is tracking updating the TypeScript spec and not the ECMAScript spec. I am not sure how the compiler is violating the spec, the compiler gives you an error if you try to access |
The spec is a super set of ECMAScript. As a matter of fact, the TypeScript spec clearly states it is an augmentation to the ECMAScript 2015 spec (emphasis mine):
So any ES2015 feature or spec change is implicitly included in the TS spec. As for the spec not being updated. yes, this is an issue, we are working on updating the spec. but we are small team, and we have been busy at work getting some awesome new features out. bear with us for a little bit and the spec should be updated to reflect these features. |
I really appreciate the effort your team have made for a greater Typescript. If my words offend you, I apologize for it. What i commmented is just for reminding. It may has low priority. |
No offense taken, and no apologies required. The spec is out of date, and we need to update it. Your feedback is important to us, so keep it coming! |
One year later: The tc39/ecma262#543 is reverted by tc39/ecma262#781. |
As pointed out by @DanielRosenwasser in the PR #6860, our spec is not up-to-date regarding class extends null here Also we should update the comment in lin Checker.ts line in
checkConstructorDeclaration
The text was updated successfully, but these errors were encountered: