2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/externalModuleExportingGenericClass_file1.ts(2,8): error TS2314: Generic type 'C<T>' requires 1 type argument(s).
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/externalModuleExportingGenericClass_file1.ts (1 errors) ====
|
|
|
|
import a = require('externalModuleExportingGenericClass_file0');
|
|
|
|
var v: a; // this should report error
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2314: Generic type 'C<T>' requires 1 type argument(s).
|
2014-07-13 01:04:16 +02:00
|
|
|
var v2: any = (new a()).foo;
|
|
|
|
var v3: number = (new a<number>()).foo;
|
|
|
|
|
|
|
|
==== tests/cases/compiler/externalModuleExportingGenericClass_file0.ts (0 errors) ====
|
|
|
|
|
|
|
|
class C<T> {
|
|
|
|
foo: T;
|
|
|
|
}
|
|
|
|
export = C;
|
|
|
|
|
|
|
|
|