mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-22 12:03:44 -05:00
Add test
This commit is contained in:
@@ -138,4 +138,13 @@ function f14() {
|
||||
x.push("hello");
|
||||
x.push(true);
|
||||
return x; // (string | number | boolean)[]
|
||||
}
|
||||
|
||||
function f15() {
|
||||
let x = [];
|
||||
while (cond()) {
|
||||
while (cond()) {}
|
||||
x.push("hello");
|
||||
}
|
||||
return x; // string[]
|
||||
}
|
||||
Reference in New Issue
Block a user