* fixUnusedIdentifier: Handle destructure with all bindings unused * Add parameters test * Add test for 'for' loop
13 lines
233 B
TypeScript
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) {}`,
|
|
});
|