Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Improve error message for unserializable private and protected class members #59229

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

weswigham
Copy link
Member

Fixes #59184

The error is used for a bit more than just class expressions, so I've made the message refer to anonymous class types more broadly (as in the linked issue and many tests), and I've also added a related span saying to add a type annotation on the cases where the error is issued on a variable declaration.

@weswigham weswigham merged commit 4641004 into microsoft:main Jul 11, 2024
29 checks passed
@weswigham weswigham deleted the unwritable-privates-error branch July 11, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Can't emit types for subclassed abstract class: error TS4094
3 participants