Skip to content

fix(compiler-cli): handle initializer APIs wrapped in type casts - #62203

Closed
crisbeto wants to merge 1 commit into
angular:mainfrom
crisbeto:62197/initializer-api-wrappers
Closed

crisbeto wants to merge 1 commit into
angular:mainfrom
crisbeto:62197/initializer-api-wrappers

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Fixes that the logic recognizing initializer APIs didn't account for the expression being wrapped in an as expresion or in a parenthesized expression. This was already accounted for in the diagnostic so these changes align the behavior between them.

Fixes #62197.

Fixes that the logic recognizing initializer APIs didn't account for the expression being wrapped in an `as` expresion or in a parenthesized expression. This was already accounted for in the diagnostic so these changes align the behavior between them.

Fixes angular#62197.
@crisbeto
crisbeto requested a review from devversion June 23, 2025 07:13
@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jun 23, 2025
@angular-robot angular-robot Bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Jun 23, 2025
@ngbot ngbot Bot added this to the Backlog milestone Jun 23, 2025
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jun 23, 2025
@crisbeto

Copy link
Copy Markdown
Member Author

This PR was merged into the repository by commit d25a6a0.

The changes were merged into the following branches: main, 20.0.x

@crisbeto crisbeto closed this in d25a6a0 Jun 23, 2025
crisbeto added a commit that referenced this pull request Jun 23, 2025
)

Fixes that the logic recognizing initializer APIs didn't account for the expression being wrapped in an `as` expresion or in a parenthesized expression. This was already accounted for in the diagnostic so these changes align the behavior between them.

Fixes #62197.

PR Close #62203
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue 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 Jul 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants