TypeScript/tests/cases/compiler/unusedLocalsStartingWithUnderscore.ts
Andy 345012e29d
Don't add diagnostic on unused import starting with underscore (#24958)
* Don't add diagnostic on unused import starting with underscore

* Fix lint
2018-06-14 12:55:12 -07:00

16 lines
223 B
TypeScript

// @noUnusedLocals:true
// @Filename: /a.ts
import * as _ from "./a";
for (const _ of []) { }
for (const _ in []) { }
namespace _ns {
let _;
for (const _ of []) { }
for (const _ in []) { }
}