-
Notifications
You must be signed in to change notification settings - Fork 26.3k
fix(ivy): type-checking error for duplicate variables in templates #35674
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
19c7238
to
b9534f3
Compare
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.
Nice work @alxhub - it is very satisfying when the architecture of the code allows a change to be effected with so little churn!
A couple of suggestions.
8831a75
to
6445a96
Compare
6445a96
to
d453196
Compare
It's an error to declare a variable twice on a specific template: ```html <div *ngFor="let i of items; let i = index"> </div> ``` This commit introduces a template type-checking error which helps to detect and diagnose this problem. Fixes angular#35186
d453196
to
49c300b
Compare
… templates (angular#35674)" This reverts commit 1207295. Since this is a new error, it should not go into the patch branch.
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 - post submit. let's please not submit unreviewed PRs in the future.
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. |
It's an error to declare a variable twice on a specific template:
This commit introduces a template type-checking error which helps to detect
and diagnose this problem.
Fixes #35186