Skip to content

isSubtype: try to dealias TypeRefs before recursively checking the prefixes #976

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 2 commits into from
Nov 25, 2015

Conversation

smarter
Copy link
Member

@smarter smarter commented Nov 25, 2015

As demonstrated by tests/pos/hk-deep-subtype.scala, we can avoid some
deep subtype recursions that result in stack overflows by doing this.

Fix #943.

Review by @odersky

…efixes

As demonstrated by tests/pos/hk-deep-subtype.scala, we can avoid some
deep subtype recursions that result in stack overflows by doing this.

Fix scala#943.
@smarter smarter force-pushed the fix/hk-deep-subtype branch from 49d4601 to 81b7ed9 Compare November 25, 2015 01:11
Thanks to the previous commit, more files now compile without deep
subtyping errors.
odersky added a commit that referenced this pull request Nov 25, 2015
isSubtype: try to dealias TypeRefs before recursively checking the prefixes
@odersky odersky merged commit 7ce2b3b into scala:master Nov 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants