Skip to content

Commit cd88f1e

Browse files
committed
Adding regression test
1 parent 586ac55 commit cd88f1e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/cases/conformance/controlFlow/controlFlowWhileStatement.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ function e() {
3737
let x: string | number;
3838
x = "";
3939
while (cond) {
40+
x; // string | number
4041
x = 42;
42+
x; // number
4143
}
4244
x; // string | number
4345
}

0 commit comments

Comments
 (0)