TypeScript/tests/baselines/reference/constDeclarationShadowedByVarDeclaration2.types

19 lines
616 B
Plaintext
Raw Normal View History

=== tests/cases/compiler/constDeclarationShadowedByVarDeclaration2.ts ===
// No errors, const declaration is not shadowed
function outer() {
2015-04-13 23:01:57 +02:00
>outer : () => void, Symbol(outer, Decl(constDeclarationShadowedByVarDeclaration2.ts, 0, 0))
const x = 0;
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(constDeclarationShadowedByVarDeclaration2.ts, 3, 9))
2015-04-13 21:36:11 +02:00
>0 : number
function inner() {
2015-04-13 23:01:57 +02:00
>inner : () => void, Symbol(inner, Decl(constDeclarationShadowedByVarDeclaration2.ts, 3, 16))
var x = "inner";
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(constDeclarationShadowedByVarDeclaration2.ts, 5, 11))
2015-04-13 21:36:11 +02:00
>"inner" : string
}
}