Generic parameter of function is inferred to be {} when argument of conditional type is passed in #25301
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
TypeScript Version:
2.8.1, 2.9.2, 3.0.0-dev.20180628
Search Terms:
conditional type inference
Code
Expected behavior:
Type checking succeedes
Actual behavior:
Type checking fails for two places:
Playground Link:
Playground
I believe this sample captures the issue but just in case there is a more verbose sample with original types
Related Issues:
Not sure #25299 #24784
The text was updated successfully, but these errors were encountered: