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
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
transform
super.foo() + 1
will become_get(_getPrototypeOf(Extended.prototype), 'getNext', this)() + 1
Input code
class Base {
getNext() {
return this.value++
}
}
class Extended extends Base {
getNext() {
return super.getNext() + 1
}
}
const ins = new Extended();
ins.getNext();
Config
Expected behavior
should invoke super class member's function with call
Version
The version of @swc/core: 1.2.66
Additional context
the code above will emit an error:
The text was updated successfully, but these errors were encountered: