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 exporting using export declaration - multiple declarations in one statement #285

Open
demonhue opened this issue Jun 26, 2023 · 1 comment

Comments

@demonhue
Copy link
Contributor

There are only two files in the directory exporter.ts and importer.ts

exporter.ts

export let a=5,b=6,c=10;

and importer.ts

import {b} from "./exporter.ts"

then only a is marked as unused export and c is not marked even if its not imported anywhere

@mrseanryan mrseanryan changed the title False negative when exporting using export declaration False negative when exporting using export declaration - multiple declarations in one statement Aug 9, 2023
@mrseanryan
Copy link
Collaborator

Probably the cause is not supporting multiple declarations in one statement:

export let a=5,b=6,c=10;

as opposed to:

export let a=5;
export let b=6;
export let c=10;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants