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
The text was updated successfully, but these errors were encountered:
mceachen
changed the title
3.4 regression on type inference with array spread types
3.4 regression on type inference with union typed array spreads
Apr 2, 2019
Uh oh!
There was an error while loading. Please reload this page.
Reproduced with TS 3.4.1 and [email protected].
Search Terms:
Union typed array spreads used to work with TS 3.3 but require explicit types with TS 3.4.
Code
Works as expected on both 3.3 and 3.4:
Works on 3.3, breaks under 3.4 and @next:
Unexpected error
error TS2345: Argument of type '4' is not assignable to parameter of type 'number[] | (number[] | undefined)[] | undefined'.
This does compile under 3.4, fwiw:
Related Issues:
#30694
The text was updated successfully, but these errors were encountered: