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
Actual behavior:
tsc --strict bug.ts -> crashes compiler
Only with --strict (specifically --strictNullChecks AND --strictPropertyInitialization)
TypeError: Cannot read property 'kind' of undefined
at isConstraintPosition
at getConstraintForLocation
at getInitialOrAssignedType
at getTypeAtFlowAssignment
...
TypeScript Version: 3.1.0-dev.20180919
Search Terms:
Cannot read property 'kind' of undefined
Code
Expected behavior:
Compiles fine in 3.0.3
Actual behavior:
tsc --strict bug.ts -> crashes compiler
Only with --strict (specifically --strictNullChecks AND --strictPropertyInitialization)
Playground Link:
https://bit.ly/2MJaboV
Does not crash though. Compiles fine with TS 3.0.3
Related Issues:
#27092
#26153
The text was updated successfully, but these errors were encountered: