TypeScript/tests/cases/compiler/extendsUntypedModule.ts
Nathan Shively-Sanders f635042255 Improve test and comments
Test asserts that unused locals error works for untyped modules.
Comment no longer claims to check for untyped modules.
2017-04-06 09:02:18 -07:00

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 { }