Commit 2b136f0
authored
Narrow context fallback limitation to walrus only (#21294)
Fixes #21273
This fixes regression caused by too cautious check in assignment context
fallback. Ternary expression can change binder version, but only
assignment expression can have an _externally visible_ effect. So I add
a dedicated counter to track this.1 parent 4c68d1b commit 2b136f0
3 files changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
550 | 555 | | |
551 | 556 | | |
552 | 557 | | |
| |||
4772 | 4777 | | |
4773 | 4778 | | |
4774 | 4779 | | |
4775 | | - | |
| 4780 | + | |
4776 | 4781 | | |
4777 | 4782 | | |
4778 | 4783 | | |
| |||
4802 | 4807 | | |
4803 | 4808 | | |
4804 | 4809 | | |
4805 | | - | |
| 4810 | + | |
4806 | 4811 | | |
4807 | 4812 | | |
4808 | 4813 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4461 | 4461 | | |
4462 | 4462 | | |
4463 | 4463 | | |
| 4464 | + | |
4464 | 4465 | | |
| 4466 | + | |
| 4467 | + | |
4465 | 4468 | | |
4466 | 4469 | | |
4467 | 4470 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1616 | 1616 | | |
1617 | 1617 | | |
1618 | 1618 | | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
0 commit comments