55 lines
729 B
Text
55 lines
729 B
Text
|
=== tests/cases/compiler/sourceMapValidationSwitch.ts ===
|
||
|
var x = 10;
|
||
|
>x : number
|
||
|
|
||
|
switch (x) {
|
||
|
>x : number
|
||
|
|
||
|
case 5:
|
||
|
x++;
|
||
|
>x++ : number
|
||
|
>x : number
|
||
|
|
||
|
break;
|
||
|
case 10:
|
||
|
{
|
||
|
x--;
|
||
|
>x-- : number
|
||
|
>x : number
|
||
|
|
||
|
break;
|
||
|
}
|
||
|
default:
|
||
|
x = x *10;
|
||
|
>x = x *10 : number
|
||
|
>x : number
|
||
|
>x *10 : number
|
||
|
>x : number
|
||
|
}
|
||
|
switch (x)
|
||
|
>x : number
|
||
|
{
|
||
|
case 5:
|
||
|
x++;
|
||
|
>x++ : number
|
||
|
>x : number
|
||
|
|
||
|
break;
|
||
|
case 10:
|
||
|
{
|
||
|
x--;
|
||
|
>x-- : number
|
||
|
>x : number
|
||
|
|
||
|
break;
|
||
|
}
|
||
|
default:
|
||
|
{
|
||
|
x = x * 10;
|
||
|
>x = x * 10 : number
|
||
|
>x : number
|
||
|
>x * 10 : number
|
||
|
>x : number
|
||
|
}
|
||
|
}
|