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

fix #20018, allow skip constraint when merging interfaces #20883

Merged

Conversation

HerringtonDarkholme
Copy link
Contributor

Fixes #20018

This fix is order sensitive: only interface declared later can skip constraint. Interface declared at first must specify constraint.

Current code base assumes all interfaces have same constraints, so interface types and their typenodes are immutable. Supporting order independent constraint skipping would involve much mutation so I didn't attempt it at first try.

@rbuckton
Copy link
Member

rbuckton commented Jan 5, 2018

Looks good, thanks!

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.

Relax the rule on the compiler side that all declarations have the same constraint
2 participants