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
Related Issues:
These may be related, given that they involve other cases where return types don't appear to be correctly enforced on callable signatures:
TypeScript Version: 3.5.3 - 3.7.0-dev.20191009
Search Terms: return type enforcement generic callable signature
Code
Expected behavior:
The above sample should not compile and instead emit
ts(2322)
becausebar
is not a valid property forFoo
Actual behavior:
The code will in fact compile and emit as if nothing were the matter.
Playground Link: here
Related Issues:
These may be related, given that they involve other cases where return types don't appear to be correctly enforced on callable signatures:
F
has one implicitly typed param #33042 deals with parameter inferences leading to incorrect return type inferences, but that doesn't apply hereThe text was updated successfully, but these errors were encountered: