TypeScript/tests/baselines/reference/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.types

104 lines
1.6 KiB
Plaintext
Raw Normal View History

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