Skip to content

Feature: Reject foo as Promise<null> === null 4.3.2 #44510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
devinrhode2 opened this issue Jun 8, 2021 · 1 comment
Closed

Feature: Reject foo as Promise<null> === null 4.3.2 #44510

devinrhode2 opened this issue Jun 8, 2021 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@devinrhode2
Copy link

devinrhode2 commented Jun 8, 2021

Screen Shot 2021-06-08 at 11 24 24 AM

https://www.typescriptlang.org/play?target=8&strict=true#code/IYZwngdgxgBAZgV2gFwJYHsL3egFAShgG8AnAU2QRKwEYBfAKCYBsKZgYBebPfB1ODFwdOomBATNmhIgxjyYUTCHSsAdM3QBzXAHJkAC1QgYx9jABGCLQBpFmACao0mGAHdUU8WQBuZEpZkMMgkCGRqunx0QA

Tested not working as expected in version 4.3.2

My apologies if this is a duplicate.

@devinrhode2 devinrhode2 changed the title Feature: Reject foo as Promise<null> === null Feature: Reject foo as Promise<null> === null 4.3.2 Jun 8, 2021
@MartinJohns
Copy link
Contributor

MartinJohns commented Jun 8, 2021

You forgot to fill out the issue template.


Duplicate of #11920. Search terms used: null compare in:title


This is unrelated to Promise<T>. Any comparison to null doesn't work as you expect.

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants