-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Error when emitting the declaration for an exported class that extends an intersection #14074
Conversation
Error when emitting an extends clause for a type that has no symbol. This error only occurs on exported classes. This prevents the emitter from producing types that extend from intersections, which are not parseable right now.
@sandersn can you also file an issue to track parsing the intersection types in heritage clauses. |
src/compiler/diagnosticMessages.json
Outdated
@@ -2352,6 +2352,10 @@ | |||
"category": "Error", | |||
"code": 4092 | |||
}, | |||
"Extends clause of exported class '{0}' refers to a type with no declaration.": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a type whose name cannot be referenced.
src/compiler/diagnosticMessages.json
Outdated
@@ -2352,6 +2352,10 @@ | |||
"category": "Error", | |||
"code": 4092 | |||
}, | |||
"Extends clause of exported class '{0}' refers to a type whose name cannot be referenced.": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: "The 'extends clause of exported class...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure? All the other messages like this just start with "Extends clause ...".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of minutes with @RyanCavanaugh turned up another option we liked even more: 'extends' clause of exported class ...
I'll go with that and update all the other error messages to match.
Refer to "'extends' clause" instead of "Extends clause".
@sandersn please cherry-pick this in release-2.2 |
@mhegazy done |
Fixes #14017 by making the mixin emit illegal.