Skip to content

Exempt ambient [#]private from unused error #37050

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

Merged
merged 2 commits into from
Feb 27, 2020

Conversation

sandersn
Copy link
Member

In ambient contexts, private property declarations and private fields exist to create nominality so they must be unused.
There should be no error when they are not used.

Fixes #36963

These declarations exist to create nominality so they _must_ be unused.
There should be no error for them.
I don't know how to baseline suggestion diagnostics in the compiler
tests.
@sandersn sandersn merged commit 6c5c48c into master Feb 27, 2020
@sandersn sandersn deleted the no-error-for-ambient-privates branch February 27, 2020 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

language service warns about ES private field emit in declaration files (#private)
3 participants