mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
602 B
Plaintext
18 lines
602 B
Plaintext
//// [tests/cases/compiler/constDeclarationShadowedByVarDeclaration2.ts] ////
|
|
|
|
=== constDeclarationShadowedByVarDeclaration2.ts ===
|
|
// No errors, const declaration is not shadowed
|
|
function outer() {
|
|
>outer : Symbol(outer, Decl(constDeclarationShadowedByVarDeclaration2.ts, 0, 0))
|
|
|
|
const x = 0;
|
|
>x : Symbol(x, Decl(constDeclarationShadowedByVarDeclaration2.ts, 2, 9))
|
|
|
|
function inner() {
|
|
>inner : Symbol(inner, Decl(constDeclarationShadowedByVarDeclaration2.ts, 2, 16))
|
|
|
|
var x = "inner";
|
|
>x : Symbol(x, Decl(constDeclarationShadowedByVarDeclaration2.ts, 4, 11))
|
|
}
|
|
}
|