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
Type guards currently only affect parameters and local variables, but I agree it seems reasonable to also have them apply to this. @kitsonk No, not related to the polymorphic this feature, the restriction is still there in current builds.
Here's an example which demonstrates (tested on 1.6.2 and current playground):
The text was updated successfully, but these errors were encountered: