Add test
This commit is contained in:
parent
612ed1e24a
commit
e9858de363
1 changed files with 9 additions and 0 deletions
|
@ -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 })[]
|
||||
}
|
Loading…
Reference in a new issue