diff options
author | Paul Phillips <paulp@improving.org> | 2011-07-01 15:28:03 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-07-01 15:28:03 +0000 |
commit | ab3e6f21aebeb24075483fbefab48a13e65d48a4 (patch) | |
tree | f87501c307951fd46b046c3ddf65cc240c65914a /test/files/scalap/caseObject | |
parent | 3c5f893b78e5cfc7d0124cece34daea257e649ff (diff) | |
download | scala-ab3e6f21aebeb24075483fbefab48a13e65d48a4.tar.gz scala-ab3e6f21aebeb24075483fbefab48a13e65d48a4.tar.bz2 scala-ab3e6f21aebeb24075483fbefab48a13e65d48a4.zip |
Stable hashCodes for case objects.
Somehow case objects fell through the cracks and have had default
hashCode implementations, leading to new hashCodes on each jvm run. Now
we use the productPrefix, and inline it right into the bytecode.
scala> None.## == "None".##
res0: Boolean = true
Closes #4752, no review.
Diffstat (limited to 'test/files/scalap/caseObject')
0 files changed, 0 insertions, 0 deletions