Skip to content

Fix narrowing of dotted names #8390

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

Merged
merged 3 commits into from
Apr 29, 2016
Merged

Fix narrowing of dotted names #8390

merged 3 commits into from
Apr 29, 2016

Conversation

ahejlsberg
Copy link
Member

Fixes #8383.

x.prop.a;
}
else if (x instanceof B) {
x.prop.b; // error: property 'b' doesn't exist on type { a: string }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments do not represent intended behavior.

@mhegazy
Copy link
Contributor

mhegazy commented Apr 29, 2016

👍

@ahejlsberg ahejlsberg merged commit f0e2d81 into master Apr 29, 2016
@mhegazy mhegazy deleted the narrowingOfDottedNames branch November 2, 2017 21:05
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants