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

ExtractDependencies: more robust cycle check #13583

Merged
merged 1 commit into from Sep 27, 2021

Conversation

smarter
Copy link
Member

@smarter smarter commented Sep 22, 2021

Checking for seen types alone wasn't robust enough since the cycle might
involve a type=:= but not eq to a type we've already seen.

Fixes #13575.

Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

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

there was a stack overflow on the subtyping check for tests/neg-custom-args/allow-deep-subtypes/9849.scala, (since moved to tests/pos-deep-subtype/9849.scala on master)

Checking for seen types alone wasn't robust enough since the cycle might
involve a type`=:=` but not `eq` to a type we've already seen.

Fixes scala#13575.
@smarter smarter merged commit 65b4326 into scala:master Sep 27, 2021
@smarter smarter deleted the extractdep-lazyref branch September 27, 2021 13:07
@Kordyjan Kordyjan added this to the 3.1.1 milestone Aug 2, 2023
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.

StackOverFlow exception at compile time
3 participants