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
It is stated that the inferred type of the 'getName' function is string, but actually 'any' type won't be narrowed, according to the same spec, and compiler doesn't do that either:
A bug in the spec?
The text was updated successfully, but these errors were encountered:
In the section about type guards, the last example seems to be invalid:
It is stated that
the inferred type of the 'getName' function is string
, but actually 'any' type won't be narrowed, according to the same spec, and compiler doesn't do that either:A bug in the spec?
The text was updated successfully, but these errors were encountered: