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",
|
2020-06-30 20:44:47 +02:00
|
|
|
fixAllDescription: ts.Diagnostics.Delete_all_unused_declarations.message,
|
2018-05-08 22:33:55 +02:00
|
|
|
newFileContent:
|
|
|
|
`const { a } = o;
|
|
|
|
a;
|
2020-06-30 20:44:47 +02:00
|
|
|
export function f({ a }, { }) {
|
2018-05-08 22:33:55 +02:00
|
|
|
a;
|
|
|
|
}`,
|
|
|
|
});
|