2014-07-13 01:04:16 +02:00
|
|
|
//// [ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.ts]
|
|
|
|
class Point {
|
|
|
|
constructor(public x: number, public y: number) { }
|
|
|
|
|
|
|
|
static Origin: Point = { x: 0, y: 0 };
|
|
|
|
}
|
|
|
|
|
|
|
|
module Point {
|
|
|
|
export var Origin = ""; //expected duplicate identifier error
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
module A {
|
|
|
|
export class Point {
|
|
|
|
constructor(public x: number, public y: number) { }
|
|
|
|
|
|
|
|
static Origin: Point = { x: 0, y: 0 };
|
|
|
|
}
|
|
|
|
|
|
|
|
export module Point {
|
|
|
|
export var Origin = ""; //expected duplicate identifier error
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js]
|
|
|
|
var Point = (function () {
|
|
|
|
function Point(x, y) {
|
|
|
|
this.x = x;
|
|
|
|
this.y = y;
|
|
|
|
}
|
|
|
|
Point.Origin = { x: 0, y: 0 };
|
|
|
|
return Point;
|
|
|
|
})();
|
|
|
|
var Point;
|
|
|
|
(function (Point) {
|
2014-08-15 01:36:33 +02:00
|
|
|
Point.Origin = ""; //expected duplicate identifier error
|
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 = { x: 0, y: 0 };
|
|
|
|
return Point;
|
|
|
|
})();
|
|
|
|
A.Point = Point;
|
|
|
|
(function (Point) {
|
2014-08-15 01:36:33 +02:00
|
|
|
Point.Origin = ""; //expected duplicate identifier error
|
2014-07-13 01:04:16 +02:00
|
|
|
})(A.Point || (A.Point = {}));
|
|
|
|
var Point = A.Point;
|
|
|
|
})(A || (A = {}));
|