2014-07-13 01:04:16 +02:00
|
|
|
//// [TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.ts]
|
|
|
|
module A {
|
|
|
|
export class Point {
|
|
|
|
x: number;
|
|
|
|
y: number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module A{
|
|
|
|
// expected error
|
|
|
|
export class Point {
|
|
|
|
origin: number;
|
|
|
|
angle: number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module X.Y.Z {
|
|
|
|
export class Line {
|
|
|
|
length: number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module X {
|
|
|
|
export module Y {
|
|
|
|
export module Z {
|
|
|
|
// expected error
|
|
|
|
export class Line {
|
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// [TwoInternalModulesThatMergeEachWithExportedClassesOfTheSameName.js]
|
|
|
|
var A;
|
|
|
|
(function (A) {
|
|
|
|
var Point = (function () {
|
|
|
|
function Point() {
|
|
|
|
}
|
|
|
|
return Point;
|
|
|
|
})();
|
|
|
|
A.Point = Point;
|
|
|
|
})(A || (A = {}));
|
|
|
|
var A;
|
|
|
|
(function (A) {
|
2014-08-14 15:42:18 +02:00
|
|
|
// expected error
|
2014-07-13 01:04:16 +02:00
|
|
|
var Point = (function () {
|
|
|
|
function Point() {
|
|
|
|
}
|
|
|
|
return Point;
|
|
|
|
})();
|
|
|
|
A.Point = Point;
|
|
|
|
})(A || (A = {}));
|
|
|
|
var X;
|
|
|
|
(function (X) {
|
2014-09-07 02:40:19 +02:00
|
|
|
var Y;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (Y) {
|
2014-09-07 02:40:19 +02:00
|
|
|
var Z;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (Z) {
|
|
|
|
var Line = (function () {
|
|
|
|
function Line() {
|
|
|
|
}
|
|
|
|
return Line;
|
|
|
|
})();
|
|
|
|
Z.Line = Line;
|
2014-09-07 02:40:19 +02:00
|
|
|
})(Z = Y.Z || (Y.Z = {}));
|
|
|
|
})(Y = X.Y || (X.Y = {}));
|
2014-07-13 01:04:16 +02:00
|
|
|
})(X || (X = {}));
|
|
|
|
var X;
|
|
|
|
(function (X) {
|
2014-09-07 02:40:19 +02:00
|
|
|
var Y;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (Y) {
|
2014-09-07 02:40:19 +02:00
|
|
|
var Z;
|
2014-07-13 01:04:16 +02:00
|
|
|
(function (Z) {
|
2014-08-14 15:42:18 +02:00
|
|
|
// expected error
|
2014-07-13 01:04:16 +02:00
|
|
|
var Line = (function () {
|
|
|
|
function Line() {
|
|
|
|
}
|
|
|
|
return Line;
|
|
|
|
})();
|
|
|
|
Z.Line = Line;
|
2014-09-07 02:40:19 +02:00
|
|
|
})(Z = Y.Z || (Y.Z = {}));
|
|
|
|
})(Y = X.Y || (X.Y = {}));
|
2014-07-13 01:04:16 +02:00
|
|
|
})(X || (X = {}));
|