Commit 126ed9c
Allow globalref on lhs of op= (#59762)
Fix #59008. `globalref`s are OK
to assign to.
This check isn't actually necessary since we check the lhs again when
re-expanding the assignment, and most of the forms allowed through
aren't valid with a non-dotted `op=`, but deleting it makes some error
messages worse.
(cherry picked from commit 5ddcea7)1 parent 54440bb commit 126ed9c
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1895 | 1895 | | |
1896 | 1896 | | |
1897 | 1897 | | |
1898 | | - | |
| 1898 | + | |
1899 | 1899 | | |
1900 | 1900 | | |
1901 | 1901 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2529 | 2529 | | |
2530 | 2530 | | |
2531 | 2531 | | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
2532 | 2541 | | |
2533 | 2542 | | |
2534 | 2543 | | |
| |||
0 commit comments