Inferred return type for function that return type assertion should be is [type]
#14891
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
TypeScript Version: 2.2.1
Code
Expected behavior:
Inferred type of foo is
function isString(x: any): boolean
Actual behavior:
Inferred type should be
function isString(x: any): x is string
The text was updated successfully, but these errors were encountered: