Type inference not working with extends
generic argument and keyof
and --strictNullChecks
#13922
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
The title of the bug should probably be improved - I was not able to come up with something that encapsulates the issue.
TypeScript Version: 2.1.5, compiling using
--strictNullChecks
This issue seems not to be present in the TypeScript playground (2.1.4-insiders.20161201):
Code
Expected behavior:
All three method calls should compile correctly.
Actual behavior:
The text was updated successfully, but these errors were encountered: