This commit is contained in:
Anders Hejlsberg 2016-10-08 15:27:49 -07:00
parent 71b9b33517
commit d202b1c037

View File

@ -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[]
}