-
-
Notifications
You must be signed in to change notification settings - Fork 724
feat(parser): add TS1174 error for classes extending multiple base classes #15993
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
base: 11-20-feat_parser_add_ts2309_error_for_export_assignment_with_other_exports
Are you sure you want to change the base?
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #15993 will not alter performanceComparing Summary
Footnotes
|
Merge activity
|
…asses
Implement TypeScript error TS1174 which is emitted when a class attempts
to extend multiple base classes using comma-separated syntax (e.g.,
'class C extends A, B { }').
In TypeScript, classes can only extend a single class, unlike interfaces
which can extend multiple interfaces. This implementation:
- Adds the diagnostic message with helpful guidance to use interfaces
for multiple inheritance
- Checks the extends clause after parsing to detect multiple base classes
- Emits an error for each additional base class beyond the first
Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
3748cbb to
f317b33
Compare
3eb5101 to
637d155
Compare

Added TS1174 error check.