Skip to content

refactor(compiler-cli): Add a diagnostic to detect forbiden invocations of required initializers#63614

Closed
JeanMeche wants to merge 1 commit intoangular:mainfrom
JeanMeche:required-input-diag
Closed

refactor(compiler-cli): Add a diagnostic to detect forbiden invocations of required initializers#63614
JeanMeche wants to merge 1 commit intoangular:mainfrom
JeanMeche:required-input-diag

Conversation

@JeanMeche
Copy link
Copy Markdown
Member

@JeanMeche JeanMeche commented Sep 5, 2025

The diagnostic will raise an error when required initializers (input, model, queries) are invoked the context of property initializers and contructors.

Docs will be provided in a follow-up

fixes #63602

@JeanMeche JeanMeche added action: global presubmit The PR is in need of a google3 global presubmit area: compiler Issues related to `ngc`, Angular's template compiler labels Sep 5, 2025
@angular-robot angular-robot bot added the detected: feature PR contains a feature commit label Sep 5, 2025
@ngbot ngbot bot added this to the Backlog milestone Sep 5, 2025
@JeanMeche JeanMeche force-pushed the required-input-diag branch 3 times, most recently from 39b48d2 to 4463875 Compare September 5, 2025 19:35
@JeanMeche JeanMeche changed the title feat(compiler-cli): Add a diagnostic to detect forbiden invokations o… refactor(compiler-cli): Add a diagnostic to detect forbiden invokations o… Sep 5, 2025
@JeanMeche JeanMeche force-pushed the required-input-diag branch 2 times, most recently from 382e68f to 85a296c Compare September 5, 2025 20:37
@JeanMeche JeanMeche marked this pull request as ready for review September 6, 2025 11:54
@pullapprove pullapprove bot requested a review from atscott September 6, 2025 11:54
@JeanMeche
Copy link
Copy Markdown
Member Author

TGP is "green"

@JeanMeche JeanMeche requested a review from crisbeto September 6, 2025 11:54
@JeanMeche JeanMeche removed the action: global presubmit The PR is in need of a google3 global presubmit label Sep 7, 2025
@JeanMeche JeanMeche changed the title refactor(compiler-cli): Add a diagnostic to detect forbiden invokations o… refactor(compiler-cli): Add a diagnostic to detect forbiden invocations of required initializers Sep 8, 2025
@JeanMeche JeanMeche force-pushed the required-input-diag branch 2 times, most recently from cfef607 to 387ecaf Compare September 8, 2025 13:26
@pullapprove pullapprove bot requested review from crisbeto and mmalerba September 9, 2025 06:40
@pullapprove pullapprove bot requested a review from crisbeto September 9, 2025 06:43
Copy link
Copy Markdown
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-for: fw-compiler, public-api

@pullapprove pullapprove bot requested a review from crisbeto September 9, 2025 06:44
Copy link
Copy Markdown
Contributor

@mmalerba mmalerba left a 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

@JeanMeche
Copy link
Copy Markdown
Member Author

There is 1 cleanup that still needs to land in g3.

…ns of required initializers

The diagnostic will raise an error when required initializers (input, model, queries) are invoked the context of property initializers and contructors.

Docs will be provided in a follow-up

fixes angular#63602
@JeanMeche JeanMeche added the action: merge The PR is ready for merge by the caretaker label Sep 15, 2025
@thePunderWoman thePunderWoman added the target: patch This PR is targeted for the next patch release label Sep 15, 2025
@thePunderWoman
Copy link
Copy Markdown
Contributor

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

thePunderWoman pushed a commit that referenced this pull request Sep 15, 2025
…ns of required initializers (#63614)

The diagnostic will raise an error when required initializers (input, model, queries) are invoked the context of property initializers and contructors.

Docs will be provided in a follow-up

fixes #63602

PR Close #63614
wildcardalice pushed a commit to wildcardalice/angular that referenced this pull request Sep 18, 2025
…ns of required initializers (angular#63614)

The diagnostic will raise an error when required initializers (input, model, queries) are invoked the context of property initializers and contructors.

Docs will be provided in a follow-up

fixes angular#63602

PR Close angular#63614
@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 Oct 16, 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 detected: feature PR contains a feature commit target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Diagnostic when reading a required input from a constructor/initializer

6 participants