Commit 340cc2a
committed
Fix crash on self-referential Generic base (fixes #21549)
class C(Generic[C]) hit "AssertionError: Must not defer during final
iteration" because the placeholder for C never resolves. On the final
iteration, report an error instead of deferring, matching how other
placeholder sites behave. Adds a regression test.1 parent 8ddae78 commit 340cc2a
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2478 | 2478 | | |
2479 | 2479 | | |
2480 | 2480 | | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
2481 | 2487 | | |
2482 | 2488 | | |
2483 | 2489 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1016 | 1016 | | |
1017 | 1017 | | |
1018 | 1018 | | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
1019 | 1026 | | |
1020 | 1027 | | |
1021 | 1028 | | |
| |||
0 commit comments