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
Expected behavior:
I would expect t4 to work, because it is just a combination of t2 and t3, which both work.
Clearly, typescript is able to process over function types in a union and isn't blocked by functions that have a generic type parameter.
Actual behavior:
error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'Foo4' has no compatible call signatures.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 3.5.0-dev.20190508
Search Terms: union generics
Code
Expected behavior:
I would expect
t4
to work, because it is just a combination oft2
andt3
, which both work.Clearly, typescript is able to process over function types in a union and isn't blocked by functions that have a generic type parameter.
Actual behavior:
The text was updated successfully, but these errors were encountered: