TypeScript/tests/baselines/reference/usingModuleWithExportImportInValuePosition.js
2014-07-12 17:30:19 -07:00

43 lines
867 B
JavaScript

//// [usingModuleWithExportImportInValuePosition.ts]
module A {
export var x = 'hello world'
export class Point {
constructor(public x: number, public y: number) { }
}
export module B {
export interface Id {
name: string;
}
}
}
module C {
export import a = A;
}
var a: string = C.a.x;
var b: { x: number; y: number; } = new C.a.Point(0, 0);
var c: { name: string };
var c: C.a.B.Id;
//// [usingModuleWithExportImportInValuePosition.js]
var A;
(function (A) {
A.x = 'hello world';
var Point = (function () {
function Point(x, y) {
this.x = x;
this.y = y;
}
return Point;
})();
A.Point = Point;
})(A || (A = {}));
var C;
(function (C) {
C.a = A;
})(C || (C = {}));
var a = C.a.x;
var b = new C.a.Point(0, 0);
var c;
var c;