Test asserts that unused locals error works for untyped modules. Comment no longer claims to check for untyped modules.
15 lines
395 B
TypeScript
15 lines
395 B
TypeScript
// Test that extending an untyped module is an error, unlike extending unknownSymbol.
|
|
// @noImplicitReferences: true
|
|
// @noUnusedLocals: true
|
|
|
|
// @Filename: /node_modules/foo/index.js
|
|
This file is not read.
|
|
|
|
// @Filename: /node_modules/bar/index.js
|
|
Nor is this one.
|
|
|
|
// @Filename: /a.ts
|
|
import Foo from "foo";
|
|
import Bar from "bar"; // error: unused
|
|
export class A extends Foo { }
|