2014-07-13 01:04:16 +02:00
|
|
|
// @module: commonjs
|
|
|
|
|
|
|
|
// @Filename: externalModuleExportingGenericClass_file0.ts
|
|
|
|
class C<T> {
|
|
|
|
foo: T;
|
|
|
|
}
|
|
|
|
export = C;
|
|
|
|
|
|
|
|
|
|
|
|
// @Filename: externalModuleExportingGenericClass_file1.ts
|
2015-09-15 20:43:28 +02:00
|
|
|
import a = require('./externalModuleExportingGenericClass_file0');
|
2014-07-13 01:04:16 +02:00
|
|
|
var v: a; // this should report error
|
|
|
|
var v2: any = (new a()).foo;
|
|
|
|
var v3: number = (new a<number>()).foo;
|