TypeScript/tests/cases/fourslash/unusedVariableInForLoop7FS.ts
Vladimir Matveev 2b10611fbf initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer (#14441)
initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer
2017-03-15 11:44:36 -07:00

17 lines
338 B
TypeScript

/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
////function f1 () [|{
//// for (const elem of ["a", "b", "c"]) {
//// elem;
//// var x = 20;
//// }
////}|]
////
verify.rangeAfterCodeFix(`{
for (const elem of ["a", "b", "c"]) {
elem;
}
}`, /*includeWhiteSpace*/ true);