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