-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
Description
TypeScript Version: 3.4.3
Search Terms:
Code
let foo: string | undefined;
if (!foo) foo = 'hello';
foo.length; // ok
new Promise(resolve => resolve(foo.length));
// ^ should be string, but inferred as string | undefined
Expected behavior:
Actual behavior:
Playground Link:
Related Issues:
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created