52 lines
1.7 KiB
Text
52 lines
1.7 KiB
Text
=== tests/cases/conformance/internalModules/DeclarationMerging/function.ts ===
|
|
module A {
|
|
>A : Symbol(A, Decl(function.ts, 0, 0))
|
|
|
|
export function Point() {
|
|
>Point : Symbol(Point, Decl(function.ts, 0, 10))
|
|
|
|
return { x: 0, y: 0 };
|
|
>x : Symbol(x, Decl(function.ts, 2, 16))
|
|
>y : Symbol(y, Decl(function.ts, 2, 22))
|
|
}
|
|
}
|
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/module.ts ===
|
|
module B {
|
|
>B : Symbol(B, Decl(module.ts, 0, 0))
|
|
|
|
export module Point {
|
|
>Point : Symbol(Point, Decl(module.ts, 0, 10))
|
|
|
|
export var Origin = { x: 0, y: 0 };
|
|
>Origin : Symbol(Origin, Decl(module.ts, 2, 18))
|
|
>x : Symbol(x, Decl(module.ts, 2, 29))
|
|
>y : Symbol(y, Decl(module.ts, 2, 35))
|
|
}
|
|
}
|
|
|
|
=== tests/cases/conformance/internalModules/DeclarationMerging/test.ts ===
|
|
var fn: () => { x: number; y: number };
|
|
>fn : Symbol(fn, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3))
|
|
>x : Symbol(x, Decl(test.ts, 0, 15))
|
|
>y : Symbol(y, Decl(test.ts, 0, 26))
|
|
|
|
var fn = A.Point;
|
|
>fn : Symbol(fn, Decl(test.ts, 0, 3), Decl(test.ts, 1, 3))
|
|
>A.Point : Symbol(A.Point, Decl(function.ts, 0, 10))
|
|
>A : Symbol(A, Decl(function.ts, 0, 0))
|
|
>Point : Symbol(A.Point, Decl(function.ts, 0, 10))
|
|
|
|
var cl: { x: number; y: number; }
|
|
>cl : Symbol(cl, Decl(test.ts, 3, 3), Decl(test.ts, 4, 3))
|
|
>x : Symbol(x, Decl(test.ts, 3, 9))
|
|
>y : Symbol(y, Decl(test.ts, 3, 20))
|
|
|
|
var cl = B.Point.Origin;
|
|
>cl : Symbol(cl, Decl(test.ts, 3, 3), Decl(test.ts, 4, 3))
|
|
>B.Point.Origin : Symbol(B.Point.Origin, Decl(module.ts, 2, 18))
|
|
>B.Point : Symbol(B.Point, Decl(module.ts, 0, 10))
|
|
>B : Symbol(B, Decl(module.ts, 0, 0))
|
|
>Point : Symbol(B.Point, Decl(module.ts, 0, 10))
|
|
>Origin : Symbol(B.Point.Origin, Decl(module.ts, 2, 18))
|
|
|