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

False negative when name is used as property #704

Open
neelmraman opened this issue Jun 27, 2024 · 1 comment
Open

False negative when name is used as property #704

neelmraman opened this issue Jun 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@neelmraman
Copy link

Hi, thanks again for your work on this project and sorry for the numerous bug reports over the past few days.

I found a new issue where exports are not marked as unused if the same name is also used as a property (and I imagine there could be other contexts as well that similarly mask the usage of the export). Here is a repro.

@neelmraman neelmraman added the bug Something isn't working label Jun 27, 2024
@neelmraman neelmraman changed the title False negative when name is used in other contexts False negative when name is used as property Jun 27, 2024
@webpro
Copy link
Collaborator

webpro commented Jun 27, 2024

Yeah, duplicate names are support by TypeScript, but not Knip unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants