2016-10-12 00:04:04 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @noUnusedLocals: true
|
|
|
|
//// function f1 () {
|
|
|
|
//// for ([|const elem of|] ["a", "b", "c"]) {
|
|
|
|
////
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
|
2017-10-10 20:28:05 +02:00
|
|
|
verify.codeFix({
|
2020-01-18 22:28:19 +01:00
|
|
|
description: "Remove unused declaration for: 'elem'",
|
2017-10-10 20:28:05 +02:00
|
|
|
index: 0,
|
|
|
|
newRangeContent: "const {} of",
|
|
|
|
});
|