Skip to content
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

Ignore optionality in the comparable relationship #12202

Merged
merged 4 commits into from
Nov 14, 2016
Merged

Conversation

DanielRosenwasser
Copy link
Member

Fixes #1447.
Fixes #12187.

The intent behind the comparability relationship is that it should succeed if two types could actually be one and the same at runtime. With optionality, the intent is that a property could be there at runtime, and so it makes sense for comparability to take that into account. Comparability should succeed regardless of property optionality.

@DanielRosenwasser DanielRosenwasser changed the title Make optionality inconsequential in the comparable relationship Ignore optionality in the comparable relationship Nov 12, 2016
@JsonFreeman
Copy link
Contributor

Looks good. I think this is not the only relaxation one could do here. But it's certainly a start, and more can be added if there are further issues.

@ahejlsberg
Copy link
Member

👍

@mhegazy mhegazy merged commit a0338d1 into master Nov 14, 2016
@mhegazy mhegazy deleted the optionalComparable branch November 14, 2016 18:47
@DanielRosenwasser
Copy link
Member Author

🎉

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.

5 participants