Skip to content

Commit 540998f

Browse files
author
Andy Hanson
committed
Add parameters test
1 parent 6bda0cd commit 540998f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/cases/fourslash/codeFixUnusedIdentifier_destructure_allUnused_all.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
33
// @noUnusedLocals: true
44
// @noUnusedParameters: true
55

6-
////export {};
76
////const { x, y } = o;
87
////const { a, b } = o;
98
////a;
9+
////export function f({ x, y }, { a, b }) {
10+
//// a;
11+
////}
1012

1113
verify.codeFixAll({
1214
fixId: "unusedIdentifier_delete",
1315
fixAllDescription: "Delete all unused declarations",
1416
newFileContent:
15-
`export {};
16-
const { a, } = o;
17-
a;`,
17+
`const { a, } = o;
18+
a;
19+
export function f({ a, }) {
20+
a;
21+
}`,
1822
});

0 commit comments

Comments
 (0)