This commit is contained in:
Anders Hejlsberg 2016-10-11 10:28:13 -07:00
parent 612ed1e24a
commit e9858de363

View file

@ -147,4 +147,13 @@ function f15() {
x.push("hello");
}
return x; // string[]
}
function f16() {
let x;
let y;
(x = [], x).push(5);
(x.push("hello"), x).push(true);
((x))[3] = { a: 1 };
return x; // (string | number | boolean | { a: number })[]
}