Skip to content

Add/no double bindings #468

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
Apr 9, 2015

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Apr 9, 2015

Make -Yno-double-bindings the default for all tests. Review by @DarkDimius

DarkDimius and others added 4 commits April 9, 2015 13:11
This aligns with the "-" instead of CamelCase convention for
the other command line options.

Also, enable -Yno-double-bindings for dotc_core.
Also, added comments to the tpd select methods that explain how the data race
could arise and how to avoid it.
@odersky
Copy link
Contributor Author

odersky commented Apr 9, 2015

Based on #453

@DarkDimius
Copy link
Contributor

All commits except the last one are already merged.
@odersky, what do you thing about removing -Yno-double-bindings as a separate option, but instead enable it if there's at least single TreeChecker in pipeline?

The test introduced a double definition, which led to a double
binding. With -Yno-double-bindings this cauases an assertion violation
instead of a reported error.
@odersky
Copy link
Contributor Author

odersky commented Apr 9, 2015

I think it's orthogonal top TreeChecking. Double binding violations also can appear in Typer.

DarkDimius added a commit that referenced this pull request Apr 9, 2015
@DarkDimius DarkDimius merged commit 0c1797a into scala:master Apr 9, 2015
OlivierBlanvillain pushed a commit to OlivierBlanvillain/dotty that referenced this pull request Dec 12, 2016
@allanrenucci allanrenucci deleted the add/no-double-bindings 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