Skip to content

Fix stack overflow when testing for shadowing #666

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
Jun 19, 2015

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 18, 2015

Shadowing tests could go into an infinite recursion when
the found shadowing member itself needs an implicit that
is resolved and then shadowed again by the same member.

A test case is neg/arrayclone-new.scala. This caused
a SO before, now gives two errors.

review by @adriaanm

@odersky
Copy link
Contributor Author

odersky commented Jun 18, 2015

Same problem as #665:

sbt.ResolveException: download failed: org.scalastyle#scalastyle-sbt-plugin;0.6.0!scalastyle-sbt-plugin.jar

@odersky
Copy link
Contributor Author

odersky commented Jun 18, 2015

/rebuild

@odersky odersky mentioned this pull request Jun 18, 2015
@adriaanm
Copy link
Contributor

LGTM -- ideally, commits should be squashed.

odersky added 2 commits June 19, 2015 11:35
Shadowing tests could go into an infinite recursion when
the found sahdwoing member itself needs an implicit that
is resolved and then shadowed again by the same member.

A test case is neg/arrayclone-new.scala. This caused
a SO before, now gives two errors.
@odersky odersky force-pushed the fix/shadowing-so branch from 259411a to 084d4bd Compare June 19, 2015 09:35
@odersky
Copy link
Contributor Author

odersky commented Jun 19, 2015

rebased to master

odersky added a commit that referenced this pull request Jun 19, 2015
Fix stack overflow when testing for shadowing
@odersky odersky merged commit 0a50465 into scala:master Jun 19, 2015
@allanrenucci allanrenucci deleted the fix/shadowing-so branch December 14, 2017 19:23
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.

3 participants