Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug] Re-assignment to class during static field initialization #3423

Closed
1 of 2 tasks
wz57c opened this issue Nov 17, 2022 · 2 comments
Closed
1 of 2 tasks

[Bug] Re-assignment to class during static field initialization #3423

wz57c opened this issue Nov 17, 2022 · 2 comments
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@wz57c
Copy link

wz57c commented Nov 17, 2022

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or 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
image

I went to swc's issue to find this problem:
swc-project/swc#6307

Actual (Problematic) Behavior

image

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 undefined

image

Expected Behavior

I hope you can remove the default value assignment here

Additional Context

No response

@tamayika
Copy link
Contributor

tamayika commented Nov 17, 2022

This code comes from TypeScript namespace compilation. (example)
I don't know well about swc, but monaco-editor is library.
So how about disable its checking for library?

@wz57c
Copy link
Author

wz57c commented Nov 18, 2022

Thanks, I'll check it out

@hediet hediet added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Dec 12, 2022
@microsoft microsoft locked and limited conversation to collaborators Mar 3, 2023
@hediet hediet converted this issue into discussion #3682 Mar 3, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

3 participants