TypeScript/tests/cases/compiler/unusedImports_entireImportDeclaration.ts
Andy 1f7a5097fa
When every import is unused, error on the entire import declaration (#22386)
* When every import is unused, error on the entire import declaration

* Code review

* Store key in map value
2018-03-07 14:42:09 -08:00

18 lines
322 B
TypeScript

// @noUnusedLocals: true
// @Filename: /a.ts
export const a = 0;
export const b = 0;
export default 0;
// @Filename: /b.ts
import d1, { a as a1, b as b1 } from "./a";
import d2, * as ns from "./a";
import d3, { a as a2, b as b2 } from "./a";
d3;
import d4, * as ns2 from "./a";
d4;
import d5, * as ns3 from "./a";
ns3;