Skip to content

Type checking is not working properly with promises. #16369

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
joeuy opened this issue Jun 8, 2017 · 1 comment
Closed

Type checking is not working properly with promises. #16369

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

Comments

@joeuy
Copy link

joeuy commented Jun 8, 2017

TypeScript Version: 2.2.1 / nightly (2.2.0-dev.201xxxxx)

Code

var p1: Promise<{ a: string }>;
var p2: Promise<{ a: string, b: string }>;
p2 = p1;

link to playground

Expected behavior:
Type error

Actual behavior:
No error

@RyanCavanaugh
Copy link
Member

See #15104

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Jun 8, 2017
@joeuy joeuy closed this as completed Jun 8, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants