TypeScript/tests/cases/compiler/nestedBlockScopedBindings1.ts

50 lines
538 B
TypeScript
Raw Normal View History

function a0() {
{
let x = 1;
}
{
let x = 1;
}
}
function a1() {
{
let x;
}
{
let x = 1;
}
}
function a2() {
{
let x = 1;
}
{
let x;
}
}
function a3() {
{
let x = 1;
}
switch (1) {
case 1:
let x;
break;
}
}
function a4() {
{
let x;
}
switch (1) {
case 1:
let x = 1;
break;
}
}