Skip to content

fix(compiler): Generate correct expression for optional chaning. - #70088

Merged
amishne merged 1 commit into
angular:mainfrom
JeanMeche:tcb-optional-chaining-fix
Aug 7, 2026
Merged

amishne merged 1 commit into
angular:mainfrom
JeanMeche:tcb-optional-chaining-fix

Conversation

@JeanMeche

Copy link
Copy Markdown
Member

Optional chaining was generating expressions with included an extra pair of parenthesis which changed the semantics of the expression and threw an unexpected error from the optional chain non nullable extended diagnostic.

fixes #70085

Optional chaining was generating expressions with included an extra pair of parenthesis which changed the semantics of the expression and threw an unexpected error from the optional chain non nullable extended diagnostic.

fixes angular#70085
@JeanMeche JeanMeche added the action: global presubmit The PR is in need of a google3 global presubmit label Aug 5, 2026
@JeanMeche
JeanMeche requested a review from crisbeto August 5, 2026 14:57
@angular-robot angular-robot Bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Aug 5, 2026
@ngbot ngbot Bot added this to the Backlog milestone Aug 5, 2026
@JeanMeche
JeanMeche marked this pull request as ready for review August 6, 2026 10:35
@JeanMeche

Copy link
Copy Markdown
Member Author

Passing TGP.

@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Aug 6, 2026
@ngbot

ngbot Bot commented Aug 6, 2026

Copy link
Copy Markdown

I see that you just added the action: merge label, but the following checks are still failing:
    failure status "google-internal-tests" is failing

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken main, please try rebasing to main and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@JeanMeche JeanMeche added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Aug 6, 2026
@JeanMeche

Copy link
Copy Markdown
Member Author

Caretaker note: we have a green TGP this is good to go.

@amishne
amishne merged commit d7b03f5 into angular:main Aug 7, 2026
29 checks passed
@amishne

amishne commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

This PR was merged into the repository. The changes were merged into the following branches:

@angular-automatic-lock-bot

Copy link
Copy Markdown

This pull request has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Oct 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: global presubmit The PR is in need of a google3 global presubmit action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

false positive for NG8107 when used inside @for

3 participants