mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
//// [tests/cases/compiler/exportSpecifierReferencingOuterDeclaration3.ts] ////
|
|
|
|
=== exportSpecifierReferencingOuterDeclaration3.ts ===
|
|
declare namespace X { export interface bar { } }
|
|
>X : Symbol(X, Decl(exportSpecifierReferencingOuterDeclaration3.ts, 0, 0))
|
|
>bar : Symbol(bar, Decl(exportSpecifierReferencingOuterDeclaration3.ts, 0, 21))
|
|
|
|
declare module "m" {
|
|
>"m" : Symbol("m", Decl(exportSpecifierReferencingOuterDeclaration3.ts, 0, 48))
|
|
|
|
namespace X { export interface foo { } }
|
|
>X : Symbol(X, Decl(exportSpecifierReferencingOuterDeclaration3.ts, 1, 20))
|
|
>foo : Symbol(foo, Decl(exportSpecifierReferencingOuterDeclaration3.ts, 2, 17))
|
|
|
|
export { X };
|
|
>X : Symbol(X, Decl(exportSpecifierReferencingOuterDeclaration3.ts, 3, 12))
|
|
|
|
export function foo(): X.foo;
|
|
>foo : Symbol(foo, Decl(exportSpecifierReferencingOuterDeclaration3.ts, 3, 17))
|
|
>X : Symbol(X, Decl(exportSpecifierReferencingOuterDeclaration3.ts, 1, 20))
|
|
>foo : Symbol(X.foo, Decl(exportSpecifierReferencingOuterDeclaration3.ts, 2, 17))
|
|
|
|
export function bar(): X.bar; // error
|
|
>bar : Symbol(bar, Decl(exportSpecifierReferencingOuterDeclaration3.ts, 4, 33))
|
|
>X : Symbol(X, Decl(exportSpecifierReferencingOuterDeclaration3.ts, 1, 20))
|
|
>bar : Symbol(X.bar)
|
|
}
|