mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
55 lines
1.7 KiB
Plaintext
55 lines
1.7 KiB
Plaintext
//// [tests/cases/conformance/internalModules/DeclarationMerging/FunctionAndModuleWithSameNameAndDifferentCommonRoot.ts] ////
|
|
|
|
=== function.ts ===
|
|
namespace A {
|
|
>A : Symbol(A, Decl(function.ts, 0, 0))
|
|
|
|
export function Point() {
|
|
>Point : Symbol(Point, Decl(function.ts, 0, 13))
|
|
|
|
return { x: 0, y: 0 };
|
|
>x : Symbol(x, Decl(function.ts, 2, 16))
|
|
>y : Symbol(y, Decl(function.ts, 2, 22))
|
|
}
|
|
}
|
|
|
|
=== module.ts ===
|
|
namespace B {
|
|
>B : Symbol(B, Decl(module.ts, 0, 0))
|
|
|
|
export namespace Point {
|
|
>Point : Symbol(Point, Decl(module.ts, 0, 13))
|
|
|
|
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))
|
|
}
|
|
}
|
|
|
|
=== 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, 13))
|
|
>A : Symbol(A, Decl(function.ts, 0, 0))
|
|
>Point : Symbol(A.Point, Decl(function.ts, 0, 13))
|
|
|
|
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, 13))
|
|
>B : Symbol(B, Decl(module.ts, 0, 0))
|
|
>Point : Symbol(B.Point, Decl(module.ts, 0, 13))
|
|
>Origin : Symbol(B.Point.Origin, Decl(module.ts, 2, 18))
|
|
|