31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
=== tests/cases/compiler/moduleSharesNameWithImportDeclarationInsideIt.ts ===
|
|
module Z.M {
|
|
>Z : typeof Z, Symbol(Z, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 0))
|
|
>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 9))
|
|
|
|
export function bar() {
|
|
>bar : () => string, Symbol(bar, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 12))
|
|
|
|
return "";
|
|
>"" : string
|
|
}
|
|
}
|
|
module A.M {
|
|
>A : typeof A, Symbol(A, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 4, 1))
|
|
>M : typeof A.M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 5, 9))
|
|
|
|
import M = Z.M;
|
|
>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 5, 12))
|
|
>Z : typeof Z, Symbol(Z, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 0))
|
|
>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 9))
|
|
|
|
export function bar() {
|
|
>bar : () => void, Symbol(bar, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 6, 19))
|
|
}
|
|
M.bar(); // Should call Z.M.bar
|
|
>M.bar() : string
|
|
>M.bar : () => string, Symbol(M.bar, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 12))
|
|
>M : typeof M, Symbol(M, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 5, 12))
|
|
>bar : () => string, Symbol(M.bar, Decl(moduleSharesNameWithImportDeclarationInsideIt.ts, 0, 12))
|
|
}
|