TypeScript/tests/baselines/reference/constDeclarationShadowedByVarDeclaration2.types

19 lines
330 B
Plaintext
Raw Normal View History

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