TypeScript/tests/cases/compiler/typeofExternalModules.ts

16 lines
417 B
TypeScript
Raw Normal View History

2015-09-15 20:43:28 +02:00
// @module: commonjs
2014-07-13 01:04:16 +02:00
// @Filename: typeofExternalModules_external.ts
export class C { }
// @Filename: typeofExternalModules_exportAssign.ts
class D { }
export = D;
// @Filename: typeofExternalModules_core.ts
2015-09-15 20:43:28 +02:00
import ext = require('./typeofExternalModules_external');
import exp = require('./typeofExternalModules_exportAssign');
2014-07-13 01:04:16 +02:00
var y1: typeof ext = ext;
y1 = exp;
var y2: typeof exp = exp;
y2 = ext;