2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/exportAssignmentClass_B.ts ===
|
|
|
|
import D = require("exportAssignmentClass_A");
|
2014-08-28 21:40:58 +02:00
|
|
|
>D : typeof D
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var d = new D();
|
2014-08-25 19:36:12 +02:00
|
|
|
>d : D
|
|
|
|
>new D() : D
|
|
|
|
>D : typeof D
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var x = d.p;
|
|
|
|
>x : number
|
|
|
|
>d.p : number
|
2014-08-25 19:36:12 +02:00
|
|
|
>d : D
|
2014-08-15 23:33:16 +02:00
|
|
|
>p : number
|
|
|
|
|
|
|
|
=== tests/cases/compiler/exportAssignmentClass_A.ts ===
|
|
|
|
class C { public p = 0; }
|
|
|
|
>C : C
|
|
|
|
>p : number
|
|
|
|
|
|
|
|
export = C;
|
|
|
|
>C : C
|
|
|
|
|