TypeScript/tests/baselines/reference/controlFlowIteration.types
2016-05-23 13:08:23 -07:00

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