Commit 95e448b
committed
Fix custom equality handling for membership narrowing in static containers
This was an issue in the new feature #21461
In narrow_type_by_identity_equality we check for custom equality before
coercing to literals, and this was done the wrong way round here
Fixes #217031 parent b6d93f5 commit 95e448b
2 files changed
Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6858 | 6858 | | |
6859 | 6859 | | |
6860 | 6860 | | |
6861 | | - | |
6862 | | - | |
6863 | | - | |
| 6861 | + | |
| 6862 | + | |
| 6863 | + | |
| 6864 | + | |
| 6865 | + | |
| 6866 | + | |
| 6867 | + | |
6864 | 6868 | | |
6865 | 6869 | | |
6866 | 6870 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3335 | 3335 | | |
3336 | 3336 | | |
3337 | 3337 | | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
| 3353 | + | |
| 3354 | + | |
| 3355 | + | |
3338 | 3356 | | |
3339 | 3357 | | |
3340 | 3358 | | |
| |||
0 commit comments