-
Notifications
You must be signed in to change notification settings - Fork 26.3k
feat(compiler-cli): add extended diagnostic for invalid nullish coalescing #60279
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
Conversation
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.
reviewed-for: public-api
CARETAKER: patch cl/737806124 |
…scing The semantics for nullish coalescing (`??`) in Javascript/Typescript differ slightly from the semantics in Angular templates. Mixing nullish coalescing with logical and/or without parentheses is an error in Javascript. This PR adds an extended diagnostic that can be enabled to treat it as an error in Angular templates as well.
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.
Reviewed-for: public-api
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.
LGTM
Reviewed-for: public-api
This PR was merged into the repository by commit bec1610. The changes were merged into the following branches: main |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The semantics for nullish coalescing (
??
) in Javascript/Typescriptdiffer slightly from the semantics in Angular templates. Mixing nullish
coalescing with logical and/or without parentheses is an error in
Javascript. This PR adds an extended diagnostic that can be enabled to
treat it as an error in Angular templates as well.