TypeScript/tests/baselines/reference/exportAssignmentOfGenericType1.types
2014-08-15 14:37:48 -07:00

30 lines
512 B
Plaintext

=== tests/cases/compiler/exportAssignmentOfGenericType1_1.ts ===
///<reference path='exportAssignmentOfGenericType1_0.ts'/>
import q = require("exportAssignmentOfGenericType1_0");
>q : typeof T
class M extends q<string> { }
>M : M
>q : q
var m: M;
>m : M
>M : M
var r: string = m.foo;
>r : string
>m.foo : string
>m : M
>foo : string
=== tests/cases/compiler/exportAssignmentOfGenericType1_0.ts ===
export = T;
>T : T<X>
class T<X> { foo: X; }
>T : T<X>
>X : X
>foo : X
>X : X