2018-05-08 22:33:55 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @noUnusedLocals: true
|
|
|
|
// @noUnusedParameters: true
|
|
|
|
|
|
|
|
////const { x, y } = o;
|
|
|
|
////const { a, b } = o;
|
|
|
|
////a;
|
2018-05-29 21:39:45 +02:00
|
|
|
////export function f({ a, b }, { x, y }) {
|
2018-05-08 22:33:55 +02:00
|
|
|
//// a;
|
|
|
|
////}
|
|
|
|
|
|
|
|
verify.codeFixAll({
|
|
|
|
fixId: "unusedIdentifier_delete",
|
|
|
|
fixAllDescription: "Delete all unused declarations",
|
|
|
|
newFileContent:
|
|
|
|
`const { a } = o;
|
|
|
|
a;
|
|
|
|
export function f({ a }) {
|
|
|
|
a;
|
|
|
|
}`,
|
|
|
|
});
|