TypeScript/tests/cases/fourslash/codeFixUnusedIdentifier_destructure_allUnused_for.ts
Andy 5725428f2d
fixUnusedIdentifier: Handle destructure with all bindings unused (#23805)
* fixUnusedIdentifier: Handle destructure with all bindings unused

* Add parameters test

* Add test for 'for' loop
2018-05-08 13:33:55 -07:00

13 lines
233 B
TypeScript

/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
// @noUnusedParameters: true
////for (const { x } of o) {}
verify.codeFix({
description: "Remove destructuring",
newFileContent:
`for (const {} of o) {}`,
});