97 lines
7.3 KiB
Text
97 lines
7.3 KiB
Text
=== tests/cases/conformance/internalModules/DeclarationMerging/TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts ===
|
|
module A {
|
|
>A : typeof A, Symbol(A,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,0,0),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,5,1))
|
|
|
|
export class Point {
|
|
>Point : Point, Symbol(Point,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,0,10))
|
|
|
|
x: number;
|
|
>x : number, Symbol(x,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,1,24))
|
|
|
|
y: number;
|
|
>y : number, Symbol(y,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,2,18))
|
|
}
|
|
}
|
|
|
|
module A {
|
|
>A : typeof A, Symbol(A,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,0,0),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,5,1))
|
|
|
|
class Point {
|
|
>Point : Point, Symbol(Point,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,7,10))
|
|
|
|
fromCarthesian(p: A.Point) {
|
|
>fromCarthesian : (p: A.Point) => { x: number; y: number; }, Symbol(fromCarthesian,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,8,17))
|
|
>p : A.Point, Symbol(p,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,9,23))
|
|
>A : any, Symbol(A,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,0,0),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,5,1))
|
|
>Point : A.Point, Symbol(Point,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,0,10))
|
|
|
|
return { x: p.x, y: p.y };
|
|
>{ x: p.x, y: p.y } : { x: number; y: number; }
|
|
>x : number, Symbol(x,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,10,20))
|
|
>p.x : number, Symbol(Point.x,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,1,24))
|
|
>p : A.Point, Symbol(p,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,9,23))
|
|
>x : number, Symbol(Point.x,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,1,24))
|
|
>y : number, Symbol(y,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,10,28))
|
|
>p.y : number, Symbol(Point.y,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,2,18))
|
|
>p : A.Point, Symbol(p,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,9,23))
|
|
>y : number, Symbol(Point.y,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,2,18))
|
|
}
|
|
}
|
|
}
|
|
|
|
// ensure merges as expected
|
|
var p: { x: number; y: number; };
|
|
>p : { x: number; y: number; }, Symbol(p,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,16,3),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,17,3))
|
|
>x : number, Symbol(x,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,16,8))
|
|
>y : number, Symbol(y,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,16,19))
|
|
|
|
var p: A.Point;
|
|
>p : { x: number; y: number; }, Symbol(p,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,16,3),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,17,3))
|
|
>A : any, Symbol(A,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,0,0),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,5,1))
|
|
>Point : A.Point, Symbol(A.Point,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,0,10))
|
|
|
|
module X.Y.Z {
|
|
>X : typeof X, Symbol(X,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,17,15),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,23,1))
|
|
>Y : typeof Y, Symbol(Y,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,19,9),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,25,10))
|
|
>Z : typeof Z, Symbol(Z,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,19,11),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,26,21))
|
|
|
|
export class Line {
|
|
>Line : Line, Symbol(Line,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,19,14))
|
|
|
|
length: number;
|
|
>length : number, Symbol(length,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,20,23))
|
|
}
|
|
}
|
|
|
|
module X {
|
|
>X : typeof X, Symbol(X,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,17,15),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,23,1))
|
|
|
|
export module Y {
|
|
>Y : typeof Y, Symbol(Y,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,19,9),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,25,10))
|
|
|
|
export module Z {
|
|
>Z : typeof Z, Symbol(Z,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,19,11),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,26,21))
|
|
|
|
class Line {
|
|
>Line : Line, Symbol(Line,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,27,25))
|
|
|
|
name: string;
|
|
>name : string, Symbol(name,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,28,24))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// ensure merges as expected
|
|
var l: { length: number; }
|
|
>l : { length: number; }, Symbol(l,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,36,3),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,37,3))
|
|
>length : number, Symbol(length,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,36,8))
|
|
|
|
var l: X.Y.Z.Line;
|
|
>l : { length: number; }, Symbol(l,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,36,3),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,37,3))
|
|
>X : any, Symbol(X,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,17,15),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,23,1))
|
|
>Y : any, Symbol(X.Y,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,19,9),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,25,10))
|
|
>Z : any, Symbol(X.Y.Z,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,19,11),Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,26,21))
|
|
>Line : X.Y.Z.Line, Symbol(X.Y.Z.Line,Decl(TwoInternalModulesThatMergeEachWithExportedAndNonExportedClassesOfTheSameName.ts,19,14))
|
|
|
|
|