Skip to content

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
tgodzik added a commit to tgodzik/scala3 that referenced this pull request Jul 23, 2025
Backport "[chore]: Add regression tests for scala#23237" to 3.3 LTS
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