Skip to content

Detect direct cycles of typerefs referring to themselves #2751

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 5 commits into from
Jul 18, 2017

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 14, 2017

Have a Config option that allows to flag as assertion errors
typerefs that refer directly to themselves in a bound or alias.
I am going to use this to track down isRef stackoverflows in the IDE; I believe
it is also useful to keep around in case similar errors appear later.

@odersky odersky force-pushed the add-check-cycles branch from f3ec774 to 0295cc4 Compare June 14, 2017 08:41
/** If this flag is set, it is checked that TypeRefs don't refer directly
* to themselves.
*/
final val checkTypeRefCycles = true
Copy link
Contributor

Choose a reason for hiding this comment

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

should be false by default

odersky added 5 commits July 15, 2017 11:51
Have a Config option that allows to flag as assertion errors
typerefs that refer directly to themselves in a bound or alias.
I am going to use this to track down isRef stackoverflows; I believe
it is also useful to keep around in case similar errors appear later.
Caused cyclic reference exceptions before
@odersky odersky force-pushed the add-check-cycles branch from 5c2de4e to d69fb6c Compare July 15, 2017 09:53
@odersky odersky merged commit b989415 into scala:master Jul 18, 2017
@allanrenucci allanrenucci deleted the add-check-cycles branch December 14, 2017 16:57
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