Skip to content

noUnusedParameters doesn't apply to binding elements #11795

@mathias-hansen

Description

@mathias-hansen

TypeScript Version: 2.0.3

Code

noUnusedParameters flag is set

const f = ([a]) => {};
f([1]);

Expected behavior:
should give an "'a' is declared but never used" error

Actual behavior:
nothing

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions