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
It mentions spread arguments, and an extra argument at the end causes TS to not realize there are the right number of arguments.
However, this repro just has tuples not being assignable to other tuples.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 3.5.1, 3.6.3, Nightly (2019-09-24)
Search Terms:
Tuple, spread, assignability
Code
Expected behavior:
Assignment to
dst1
should succeed.It should succeed because
head
isnumber
and...tail, 1337
should correspond to...number[]
Actual behavior:
Assignment to
dst1
fails.Playground Link:
3.5.1 Playground
Related Issues:
Possibly this,
#29248
It mentions spread arguments, and an extra argument at the end causes TS to not realize there are the right number of arguments.
However, this repro just has tuples not being assignable to other tuples.
The text was updated successfully, but these errors were encountered: