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
I don't have time to work on this more, so I'll leave a summary.
The PR doesn't work. I suspect this needs to be done outside the class, after it has been declared, similar to how TypeScript and the proposal encourage it.
Something like
let a = class A {}
(() => {
...do static stuff here
})
return a;
I suspect that would require a lot of change with the private methods and what not.
Describe the bug
Decorators get hoisted before the class declaration which causes problems when a static function in a class is used to decorate a method.
Input code
Config
Playground link
No response
SWC Info output
No response
Expected behavior
It should work.
Actual behavior
No response
Version
1.3.90
Additional context
No response
The text was updated successfully, but these errors were encountered: