mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Adding regression test
This commit is contained in:
@@ -37,7 +37,9 @@ function e() {
|
||||
let x: string | number;
|
||||
x = "";
|
||||
while (cond) {
|
||||
x; // string | number
|
||||
x = 42;
|
||||
x; // number
|
||||
}
|
||||
x; // string | number
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user