TypeScript/tests/baselines/reference/exportAssignmentOfGenericType1.types
2015-04-15 16:44:20 -07:00

30 lines
515 B
Plaintext

=== tests/cases/compiler/exportAssignmentOfGenericType1_1.ts ===
///<reference path='exportAssignmentOfGenericType1_0.ts'/>
import q = require("exportAssignmentOfGenericType1_0");
>q : typeof q
class M extends q<string> { }
>M : M
>q : q<X>
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