26 lines
598 B
TypeScript
26 lines
598 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]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
//// [errorsOnImportedSymbol_1.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var x = new Sammy.Sammy();
|
|
var y = Sammy.Sammy();
|