21 lines
438 B
TypeScript
21 lines
438 B
TypeScript
//// [tests/cases/compiler/errorsOnImportedSymbol.ts] ////
|
|
|
|
//// [errorsOnImportedSymbol_0.ts]
|
|
|
|
interface Sammy {
|
|
new (): any;
|
|
(): number;
|
|
}
|
|
export = Sammy;
|
|
|
|
//// [errorsOnImportedSymbol_1.ts]
|
|
import Sammy = require("errorsOnImportedSymbol_0");
|
|
var x = new Sammy.Sammy();
|
|
var y = Sammy.Sammy();
|
|
|
|
|
|
|
|
//// [errorsOnImportedSymbol_0.js]
|
|
//// [errorsOnImportedSymbol_1.js]
|
|
var x = new Sammy.Sammy();
|
|
var y = Sammy.Sammy();
|