Skip to content

Fix #453, patternMatcher should use == #456

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 3 commits into from
Apr 9, 2015

Conversation

DarkDimius
Copy link
Contributor

No description provided.

@DarkDimius
Copy link
Contributor Author

This fix seems to unveil some other bug: now tree suceeds to pass Ycheck after PatMat, but fails after resolveSuper: DefDef that defines MethodType.equals has symbol Any.equals

@odersky
Copy link
Contributor

odersky commented Apr 9, 2015

Morale of the story: Alway, always test with -Yno-double-bindings. Not doing so will most likely leave you puzzled. -Yno-double-bindings was dropped when "twice" was removed, that's why the error was not observed directly and then caused a weird failure in TreeChecker. I'll do a separate PR that makes -Yno-double-bindings the default option for testing.

DarkDimius and others added 3 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

odersky commented Apr 9, 2015

Rebased to master

@DarkDimius
Copy link
Contributor Author

LGTM

@DarkDimius
Copy link
Contributor Author

@odersky, thanks for investigating.
Can we instead of making -Yno-double-bindings a separate option, enable it if there's at least single TreeChecker in pipeline?

DarkDimius added a commit that referenced this pull request Apr 9, 2015
Fix #453, patternMatcher should use ==
@DarkDimius DarkDimius merged commit 6fc0a0f into scala:master Apr 9, 2015
@allanrenucci allanrenucci deleted the patmat-eqeq branch December 14, 2017 19:24
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