35 lines
1.4 KiB
Text
35 lines
1.4 KiB
Text
=== tests/cases/conformance/internalModules/DeclarationMerging/module.d.ts ===
|
|
declare module Point {
|
|
>Point : Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.ts, 0, 0))
|
|
|
|
export var Origin: { x: number; y: number; }
|
|
>Origin : Symbol(Origin, Decl(module.d.ts, 1, 14))
|
|
>x : Symbol(x, Decl(module.d.ts, 1, 24))
|
|
>y : Symbol(y, Decl(module.d.ts, 1, 35))
|
|
}
|
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/function.ts ===
|
|
function Point() {
|
|
>Point : Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.ts, 0, 0))
|
|
|
|
return { x: 0, y: 0 };
|
|
>x : Symbol(x, Decl(function.ts, 1, 12))
|
|
>y : Symbol(y, Decl(function.ts, 1, 18))
|
|
}
|
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/test.ts ===
|
|
var cl: { x: number; y: number; }
|
|
>cl : Symbol(cl, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3))
|
|
>x : Symbol(x, Decl(test.ts, 0, 9))
|
|
>y : Symbol(y, Decl(test.ts, 0, 20))
|
|
|
|
var cl = Point();
|
|
>cl : Symbol(cl, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3))
|
|
>Point : Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.ts, 0, 0))
|
|
|
|
var cl = Point.Origin;
|
|
>cl : Symbol(cl, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3), Decl(test.ts, 2, 3))
|
|
>Point.Origin : Symbol(Point.Origin, Decl(module.d.ts, 1, 14))
|
|
>Point : Symbol(Point, Decl(module.d.ts, 0, 0), Decl(function.ts, 0, 0))
|
|
>Origin : Symbol(Point.Origin, Decl(module.d.ts, 1, 14))
|
|
|