-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
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:
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created