2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/exportAssignmentOfGenericType1_1.ts ===
|
|
|
|
///<reference path='exportAssignmentOfGenericType1_0.ts'/>
|
|
|
|
import q = require("exportAssignmentOfGenericType1_0");
|
2014-08-28 21:40:58 +02:00
|
|
|
>q : typeof q
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
class M extends q<string> { }
|
|
|
|
>M : M
|
2014-08-25 19:36:12 +02:00
|
|
|
>q : q<X>
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|