Skip to content

fix(compiler-cli): incorrectly interpreting $any calls with a property read - #44657

Closed
crisbeto wants to merge 1 commit into
angular:masterfrom
crisbeto:any-property-read
Closed

crisbeto wants to merge 1 commit into
angular:masterfrom
crisbeto:any-property-read

Conversation

@crisbeto

@crisbeto crisbeto commented Jan 7, 2022

Copy link
Copy Markdown
Member

This was flagged during the code review of #44580. When generating a type check block, we were interpreting any call to $any as an as any cast, even if it's part of a PropertyRead (e.g. foo.$any(1)). This is handled correctly in other parts of the compiler, but it looks like it was missed in the type checker.

…y read

This was flagged during the code review of angular#44580. When generating a type check block, we were interpreting any call to `$any` as an `as any` cast, even if it's part of a `PropertyRead` (e.g. `foo.$any(1)`). This is handled correctly in other parts of the compiler, but it looks like it was missed in the type checker.
@crisbeto
crisbeto marked this pull request as ready for review January 7, 2022 09:54
@pullapprove
pullapprove Bot requested a review from atscott January 7, 2022 09:54
@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer area: compiler Issues related to `ngc`, Angular's template compiler target: patch This PR is targeted for the next patch release labels Jan 7, 2022
@ngbot ngbot Bot modified the milestone: Backlog Jan 7, 2022

@atscott atscott left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker action: presubmit The PR is in need of a google3 presubmit and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 7, 2022
@atscott

atscott commented Jan 7, 2022

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit eeaabe7.

@atscott atscott closed this in eeaabe7 Jan 7, 2022
atscott pushed a commit that referenced this pull request Jan 7, 2022
…y read (#44657)

This was flagged during the code review of #44580. When generating a type check block, we were interpreting any call to `$any` as an `as any` cast, even if it's part of a `PropertyRead` (e.g. `foo.$any(1)`). This is handled correctly in other parts of the compiler, but it looks like it was missed in the type checker.

PR Close #44657
amitbeck pushed a commit to amitbeck/angular that referenced this pull request Jan 13, 2022
…y read (angular#44657)

This was flagged during the code review of angular#44580. When generating a type check block, we were interpreting any call to `$any` as an `as any` cast, even if it's part of a `PropertyRead` (e.g. `foo.$any(1)`). This is handled correctly in other parts of the compiler, but it looks like it was missed in the type checker.

PR Close angular#44657
@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 Feb 7, 2022
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 action: presubmit The PR is in need of a google3 presubmit 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