You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hashcode does not account for the hashcode of the outer object, even though equals does compare outer objects. This leads to bad hash functions if inner case classes are used as keys in maps.
The text was updated successfully, but these errors were encountered:
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 8, 2020
Minimized example
Output
If we compile with -Xprint:typer we get this line in the definitions of
B
:The hashcode does not account for the hashcode of the outer object, even though equals does compare outer objects. This leads to bad hash functions if inner case classes are used as keys in maps.
The text was updated successfully, but these errors were encountered: