You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tuple Spread Inconsistencies When IntersectedΒ #60539
TupleIntersection[1] and [...TupleIntersection] both seem to use an overly broad type, matching the number index signature instead of the more narrow spread signature.
What I mean is that TupleIntersection[1] behaves just like Tuple[number] does. This leads me to believe that the number index signature is synthesized correctly but the logic for numeric literals in the range of the spread signature aren't handled.
π Expected behavior
I expected Tuple's behaviour to match TupleIntersection.
Activity
jcalz commentedon Nov 19, 2024
related to #59849, #59521, #45371, #42557, #40945
[-]Tuple Spread Inconsitencies When Intersected[/-][+]Tuple Spread Inconsistencies When Intersected[/+]