Commit 3ba8784
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 7af188e commit 3ba8784
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
1522 | 1522 | | |
1523 | 1523 | | |
1524 | | - | |
| 1524 | + | |
1525 | 1525 | | |
1526 | 1526 | | |
1527 | 1527 | | |
| |||
1536 | 1536 | | |
1537 | 1537 | | |
1538 | 1538 | | |
1539 | | - | |
1540 | | - | |
1541 | | - | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
1542 | 1542 | | |
1543 | 1543 | | |
1544 | | - | |
| 1544 | + | |
1545 | 1545 | | |
1546 | 1546 | | |
1547 | 1547 | | |
| |||
0 commit comments