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
Tuple types are only inferred in the presence of a contextual type. e.g. let a: Data = [1, 2]. the issue here is that the contextual type does not flow through map, since the return type position is not a generic argument inference site. issue #11152 is tracking fixing that.
TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx)
2.1.1
Code
Expected behavior:
Compiled successfully.
Actual behavior:
It seems work well in 2.0, throw this error after update to 2.1
The text was updated successfully, but these errors were encountered: