1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
=== tests/cases/conformance/internalModules/DeclarationMerging/module.ts ===
module X.Y {
>X : typeof X
>Y : typeof Y
export module Point {
>Point : typeof Point
export var Origin = new Point(0, 0);
>Origin : Point
>new Point(0, 0) : Point
>Point : typeof Point
>0 : 0
>0 : 0
}
}
=== tests/cases/conformance/internalModules/DeclarationMerging/classPoint.ts ===
module X.Y {
>X : typeof X
>Y : typeof Y
// duplicate identifier
export class Point {
>Point : Point
constructor(x: number, y: number) {
>x : number
>y : number
this.x = x;
>this.x = x : number
>this.x : number
>this : this
>x : number
>x : number
this.y = y;
>this.y = y : number
>this.y : number
>this : this
>y : number
>y : number
}
x: number;
>x : number
y: number;
>y : number
}
}
=== tests/cases/conformance/internalModules/DeclarationMerging/simple.ts ===
module A {
>A : typeof A
export var Instance = new A();
>Instance : A
>new A() : A
>A : typeof A
}
// duplicate identifier
class A {
>A : A
id: string;
>id : string
}
|