2014-07-13 01:04:16 +02:00
|
|
|
//// [ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.ts]
|
|
|
|
class Point {
|
|
|
|
constructor(public x: number, public y: number) { }
|
|
|
|
|
|
|
|
static Origin(): Point { return { x: 0, y: 0 }; }
|
|
|
|
}
|
|
|
|
|
|
|
|
module Point {
|
|
|
|
function Origin() { return ""; }// not an error, since not exported
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
module A {
|
|
|
|
export class Point {
|
|
|
|
constructor(public x: number, public y: number) { }
|
|
|
|
|
|
|
|
static Origin(): Point { return { x: 0, y: 0 }; }
|
|
|
|
}
|
|
|
|
|
|
|
|
export module Point {
|
|
|
|
function Origin() { return ""; }// not an error since not exported
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.js]
|
|
|
|
var Point = (function () {
|
|
|
|
function Point(x, y) {
|
|
|
|
this.x = x;
|
|
|
|
this.y = y;
|
|
|
|
}
|
|
|
|
Point.Origin = function () {
|
|
|
|
return { x: 0, y: 0 };
|
|
|
|
};
|
|
|
|
return Point;
|
|
|
|
})();
|
|
|
|
var Point;
|
|
|
|
(function (Point) {
|
|
|
|
function Origin() {
|
|
|
|
return "";
|
2014-08-15 22:18:54 +02:00
|
|
|
} // not an error, since not exported
|
2014-07-13 01:04:16 +02:00
|
|
|
})(Point || (Point = {}));
|
|
|
|
var A;
|
|
|
|
(function (A) {
|
|
|
|
var Point = (function () {
|
|
|
|
function Point(x, y) {
|
|
|
|
this.x = x;
|
|
|
|
this.y = y;
|
|
|
|
}
|
|
|
|
Point.Origin = function () {
|
|
|
|
return { x: 0, y: 0 };
|
|
|
|
};
|
|
|
|
return Point;
|
|
|
|
})();
|
|
|
|
A.Point = Point;
|
2014-09-07 02:40:19 +02:00
|
|
|
var Point;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (Point) {
|
|
|
|
function Origin() {
|
|
|
|
return "";
|
2014-08-15 22:18:54 +02:00
|
|
|
} // not an error since not exported
|
2014-09-07 02:40:19 +02:00
|
|
|
})(Point = A.Point || (A.Point = {}));
|
2014-07-13 01:04:16 +02:00
|
|
|
})(A || (A = {}));
|