160b667846
* fixUnusedIdentifier: Don't remove parameter in override or non-last parameter in callback * Only allow removing last parameters; don't care about contextual type
23 lines
409 B
TypeScript
23 lines
409 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @noUnusedLocals: true
|
|
// @noUnusedParameters: true
|
|
|
|
////const { x, y } = o;
|
|
////const { a, b } = o;
|
|
////a;
|
|
////export function f({ a, b }, { x, y }) {
|
|
//// a;
|
|
////}
|
|
|
|
verify.codeFixAll({
|
|
fixId: "unusedIdentifier_delete",
|
|
fixAllDescription: "Delete all unused declarations",
|
|
newFileContent:
|
|
`const { a } = o;
|
|
a;
|
|
export function f({ a }) {
|
|
a;
|
|
}`,
|
|
});
|