2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts ===
|
|
|
|
module A {
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export interface Point {
|
|
|
|
>Point : Point
|
|
|
|
|
|
|
|
x: number;
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
y: number;
|
|
|
|
>y : number
|
|
|
|
|
|
|
|
toCarth(): Point;
|
|
|
|
>toCarth : () => Point
|
|
|
|
>Point : Point
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module A {
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export interface Point {
|
|
|
|
>Point : Point
|
|
|
|
|
|
|
|
fromCarth(): Point;
|
|
|
|
>fromCarth : () => Point
|
|
|
|
>Point : Point
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ensure merges as expected
|
|
|
|
var p: { x: number; y: number; toCarth(): A.Point; fromCarth(): A.Point; };
|
2014-08-25 19:36:12 +02:00
|
|
|
>p : { x: number; y: number; toCarth(): A.Point; fromCarth(): A.Point; }
|
2014-08-15 23:33:16 +02:00
|
|
|
>x : number
|
|
|
|
>y : number
|
2014-08-25 19:36:12 +02:00
|
|
|
>toCarth : () => A.Point
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : A.Point
|
|
|
|
>fromCarth : () => A.Point
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : A.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var p: A.Point;
|
2014-08-25 19:36:12 +02:00
|
|
|
>p : { x: number; y: number; toCarth(): A.Point; fromCarth(): A.Point; }
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : A.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
module X.Y.Z {
|
2014-08-28 21:40:58 +02:00
|
|
|
>X : unknown
|
|
|
|
>Y : unknown
|
|
|
|
>Z : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export interface Line {
|
|
|
|
>Line : Line
|
|
|
|
|
|
|
|
new (start: A.Point, end: A.Point);
|
2014-08-25 19:36:12 +02:00
|
|
|
>start : A.Point
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : A.Point
|
|
|
|
>end : A.Point
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : A.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module X {
|
2014-08-28 21:40:58 +02:00
|
|
|
>X : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export module Y.Z {
|
2014-08-28 21:40:58 +02:00
|
|
|
>Y : unknown
|
|
|
|
>Z : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export interface Line {
|
|
|
|
>Line : Line
|
|
|
|
|
|
|
|
start: A.Point;
|
2014-08-25 19:36:12 +02:00
|
|
|
>start : A.Point
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : A.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
end: A.Point;
|
2014-08-25 19:36:12 +02:00
|
|
|
>end : A.Point
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : A.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ensure merges as expected
|
|
|
|
var l: { start: A.Point; end: A.Point; new (s: A.Point, e: A.Point); }
|
2014-08-25 19:36:12 +02:00
|
|
|
>l : { new (s: A.Point, e: A.Point): any; start: A.Point; end: A.Point; }
|
|
|
|
>start : A.Point
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : A.Point
|
|
|
|
>end : A.Point
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : A.Point
|
|
|
|
>s : A.Point
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : A.Point
|
|
|
|
>e : A.Point
|
2014-08-28 21:40:58 +02:00
|
|
|
>A : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Point : A.Point
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var l: X.Y.Z.Line;
|
2014-08-25 19:36:12 +02:00
|
|
|
>l : { new (s: A.Point, e: A.Point): any; start: A.Point; end: A.Point; }
|
2014-08-28 21:40:58 +02:00
|
|
|
>X : unknown
|
|
|
|
>Y : unknown
|
|
|
|
>Z : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Line : X.Y.Z.Line
|
2014-08-15 23:33:16 +02:00
|
|
|
|