mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Add test
This commit is contained in:
parent
71b9b33517
commit
d202b1c037
@ -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[]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user