factory: getLeftmostExpression needs to handle more kinds #25223
Labels
API
Relates to the public API for TypeScript
Bug
A bug in TypeScript
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
TypeScript Version: 3.0.0-dev.20180621
Search Terms:
Code
Expected behavior:
({} as any);
The same applies to
NonNullExpression
.Actual behavior:
Invalid code, this is a syntax error:
{} as any;
The text was updated successfully, but these errors were encountered: