Closed
Description
TypeScript Version: 3.7.0-beta
type O = { data: string };
type A = () => Promise<O[]>;
type B = () => Promise<O | undefined>;
const f = async (a: A, b: B) => {
const [_a, _b] = await Promise.all([a(), b()]);
return _b != null ? _b.data + _a.length : _a.length;
}
Expected behavior:
Compiles as in 3.6.3
Actual behavior:
Errors (Regression)
Related Issues: