Commit 956ea9e
Skip keys absent from the other array instead of falling back to getIterableValueType()
When intersecting two ConstantArrayTypes and hasOffsetValueType() returns
no for a key, that key cannot exist in the intersection. Previously it
fell back to getIterableValueType() which could leak unrelated value types.
Now those keys are simply skipped via continue.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 40f7eda commit 956ea9e
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1495 | 1495 | | |
1496 | 1496 | | |
1497 | 1497 | | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
1501 | 1501 | | |
1502 | 1502 | | |
1503 | | - | |
| 1503 | + | |
1504 | 1504 | | |
1505 | 1505 | | |
1506 | 1506 | | |
| |||
1515 | 1515 | | |
1516 | 1516 | | |
1517 | 1517 | | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
1521 | 1521 | | |
1522 | 1522 | | |
1523 | | - | |
| 1523 | + | |
1524 | 1524 | | |
1525 | 1525 | | |
1526 | 1526 | | |
| |||
0 commit comments