TypeScript/tests/cases/compiler/nestedBlockScopedBindings1.ts
2016-01-20 15:23:46 -08:00

50 lines
538 B
TypeScript

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;
}
}