This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Bug] Re-assignment to class during static field initialization #3423
Labels
*question
Issue represents a question, should be posted to StackOverflow (VS Code)
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Code
No response
Reproduction Steps
I replaced babel with swc for transcoding,reported a mistake

I went to swc's issue to find this problem:
swc-project/swc#6307
Actual (Problematic) Behavior

I know that the purpose here is to prevent errors caused by Color being undefined, but in this file, Color is not possible to be undefinedExpected Behavior
I hope you can remove the default value assignment here
Additional Context
No response
The text was updated successfully, but these errors were encountered: