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
Which is not equivalent. This results in the argument string being passed to the super call (i.e. it behaves as a 'bare' super call). Changing this line to super({}) causes it to work as expected.
I've encountered a situation where this cop is possibly not safe.
I have a class with subclasses. The constructor for the parent class accepts a hash, and I want this to be an empty hash in one of the child classes.
When I autocorrect the child class it gets changed to:
Which is not equivalent. This results in the argument
string
being passed to the super call (i.e. it behaves as a 'bare'super
call). Changing this line tosuper({})
causes it to work as expected.The text was updated successfully, but these errors were encountered: