103 lines
1.6 KiB
Text
103 lines
1.6 KiB
Text
=== tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts ===
|
|
module A {
|
|
>A : any
|
|
|
|
export interface Point {
|
|
>Point : Point
|
|
|
|
x: number;
|
|
>x : number
|
|
|
|
y: number;
|
|
>y : number
|
|
|
|
toCarth(): Point;
|
|
>toCarth : () => Point
|
|
>Point : Point
|
|
}
|
|
}
|
|
|
|
module A {
|
|
>A : any
|
|
|
|
interface Point {
|
|
>Point : Point
|
|
|
|
fromCarth(): Point;
|
|
>fromCarth : () => Point
|
|
>Point : Point
|
|
}
|
|
}
|
|
|
|
// 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
|
|
|
|
var p: A.Point;
|
|
>p : { x: number; y: number; toCarth(): A.Point; }
|
|
>A : any
|
|
>Point : A.Point
|
|
|
|
module X.Y.Z {
|
|
>X : any
|
|
>Y : any
|
|
>Z : any
|
|
|
|
export interface Line {
|
|
>Line : Line
|
|
|
|
new (start: A.Point, end: A.Point);
|
|
>start : A.Point
|
|
>A : any
|
|
>Point : A.Point
|
|
>end : A.Point
|
|
>A : any
|
|
>Point : A.Point
|
|
}
|
|
}
|
|
|
|
module X {
|
|
>X : any
|
|
|
|
export module Y.Z {
|
|
>Y : any
|
|
>Z : any
|
|
|
|
interface Line {
|
|
>Line : Line
|
|
|
|
start: A.Point;
|
|
>start : A.Point
|
|
>A : any
|
|
>Point : A.Point
|
|
|
|
end: A.Point;
|
|
>end : A.Point
|
|
>A : any
|
|
>Point : A.Point
|
|
}
|
|
}
|
|
}
|
|
|
|
// 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
|
|
|
|
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
|
|
|