Skip to content

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

Merged
rbuckton merged 1 commit into
microsoft:masterfrom
HerringtonDarkholme:relax-type-constraint
Jan 5, 2018
Merged

fix #20018, allow skip constraint when merging interfaces#20883
rbuckton merged 1 commit into
microsoft:masterfrom
HerringtonDarkholme:relax-type-constraint

Conversation

@HerringtonDarkholme

Copy link
Copy Markdown
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

rbuckton commented Jan 5, 2018

Copy link
Copy Markdown
Contributor

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