50 lines
620 B
Text
50 lines
620 B
Text
=== tests/cases/compiler/sourceMapValidationIfElse.ts ===
|
|
var i = 10;
|
|
>i : number
|
|
>10 : number
|
|
|
|
if (i == 10) {
|
|
>i == 10 : boolean
|
|
>i : number
|
|
>10 : number
|
|
|
|
i++;
|
|
>i++ : number
|
|
>i : number
|
|
|
|
} else
|
|
{
|
|
}
|
|
if (i == 10)
|
|
>i == 10 : boolean
|
|
>i : number
|
|
>10 : number
|
|
{
|
|
i++;
|
|
>i++ : number
|
|
>i : number
|
|
}
|
|
else if (i == 20) {
|
|
>i == 20 : boolean
|
|
>i : number
|
|
>20 : number
|
|
|
|
i--;
|
|
>i-- : number
|
|
>i : number
|
|
|
|
} else if (i == 30) {
|
|
>i == 30 : boolean
|
|
>i : number
|
|
>30 : number
|
|
|
|
i += 70;
|
|
>i += 70 : number
|
|
>i : number
|
|
>70 : number
|
|
|
|
} else {
|
|
i--;
|
|
>i-- : number
|
|
>i : number
|
|
}
|