Skip to content

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
tgodzik added a commit to tgodzik/scala3 that referenced this pull request Jul 3, 2025
Backport "Erased fields are not nullable" 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