TypeScript/tests/baselines/reference/constDeclarationShadowedByVarDeclaration2.types
2015-04-15 16:44:20 -07:00

19 lines
330 B
Plaintext

=== tests/cases/compiler/constDeclarationShadowedByVarDeclaration2.ts ===
// No errors, const declaration is not shadowed
function outer() {
>outer : () => void
const x = 0;
>x : number
>0 : number
function inner() {
>inner : () => void
var x = "inner";
>x : string
>"inner" : string
}
}