asserts
keyword does not enhance hoisted function type, works on functions assigned to a variable
#41232
Labels
Milestone
TypeScript Version: 4.0.2, 4.1.0-beta
Search Terms:
asserts function
Code
Expected behavior:
At least in runtime code coming after
assignLabel(a, 'a');
,a.label
should be accessible.Actual behavior:
Playground Link: link
The text was updated successfully, but these errors were encountered: