2014-07-13 01:04:16 +02:00
|
|
|
//// [ExportModuleWithAccessibleTypesOnItsExportedMembers.ts]
|
|
|
|
module A {
|
|
|
|
|
|
|
|
export class Point {
|
|
|
|
constructor(public x: number, public y: number) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
export module B {
|
|
|
|
export var Origin: Point = new Point(0, 0);
|
|
|
|
|
|
|
|
export class Line {
|
|
|
|
constructor(start: Point, end: Point) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static fromOrigin(p: Point) {
|
|
|
|
return new Line({ x: 0, y: 0 }, p);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [ExportModuleWithAccessibleTypesOnItsExportedMembers.js]
|
|
|
|
var A;
|
|
|
|
(function (A) {
|
|
|
|
var Point = (function () {
|
|
|
|
function Point(x, y) {
|
|
|
|
this.x = x;
|
|
|
|
this.y = y;
|
|
|
|
}
|
|
|
|
return Point;
|
|
|
|
})();
|
|
|
|
A.Point = Point;
|
2014-09-07 02:40:19 +02:00
|
|
|
var B;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (B) {
|
|
|
|
B.Origin = new Point(0, 0);
|
|
|
|
var Line = (function () {
|
|
|
|
function Line(start, end) {
|
|
|
|
}
|
|
|
|
Line.fromOrigin = function (p) {
|
|
|
|
return new Line({ x: 0, y: 0 }, p);
|
|
|
|
};
|
|
|
|
return Line;
|
|
|
|
})();
|
|
|
|
B.Line = Line;
|
2014-09-07 02:40:19 +02:00
|
|
|
})(B = A.B || (A.B = {}));
|
2014-07-13 01:04:16 +02:00
|
|
|
})(A || (A = {}));
|