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
Thanks! Now I get it. Type is somehow immutable. If this is used as an expression in typeof (which I'm trying to implement in #43898), it should get narrowed. right?
Activity
RyanCavanaugh commentedon May 14, 2021
instanceofwon't allow arbitrary cross-type coercions. If this is the behavior you want, writeNote that
this, the type, does not change meaning depending on the narrowing context it's inZzzen commentedon May 14, 2021
Thanks! Now I get it. Type is somehow immutable. If
thisis used as an expression intypeof(which I'm trying to implement in #43898), it should get narrowed. right?RyanCavanaugh commentedon May 14, 2021
Yeah,
typeof xis a "value position" forxand all value logic should apply there