44 lines
697 B
Plaintext
44 lines
697 B
Plaintext
=== tests/cases/conformance/controlFlow/controlFlowIteration.ts ===
|
|
|
|
let cond: boolean;
|
|
>cond : boolean
|
|
|
|
function ff() {
|
|
>ff : () => void
|
|
|
|
let x: string | undefined;
|
|
>x : string | undefined
|
|
|
|
while (true) {
|
|
>true : boolean
|
|
|
|
if (cond) {
|
|
>cond : boolean
|
|
|
|
x = "";
|
|
>x = "" : string
|
|
>x : string | undefined
|
|
>"" : string
|
|
}
|
|
else {
|
|
if (x) {
|
|
>x : string | undefined
|
|
|
|
x.length;
|
|
>x.length : number
|
|
>x : string
|
|
>length : number
|
|
}
|
|
if (x) {
|
|
>x : string | undefined
|
|
|
|
x.length;
|
|
>x.length : number
|
|
>x : string
|
|
>length : number
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|