Commit 631138c
Add isAcceptedBy test for array&hasOffsetValue with union accepting type
Tests that array<mixed>&hasOffsetValue(3, int) is accepted by
array<int>|array<string> — the isSuperTypeOf guard correctly allows
this since array<int> individually accepts the intersection.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 14d9af0 commit 631138c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
0 commit comments