summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-11-09 03:13:17 +0000
committerPaul Phillips <paulp@improving.org>2010-11-09 03:13:17 +0000
commite46a39797744d1fb4bda637f31034be5d25a6338 (patch)
tree24166bae78a78982d0ae30187761d7b22ba85f91 /test
parent6cb5c25802ec68d31fccde6bf9ee2fd2e8e3ff45 (diff)
downloadscala-e46a39797744d1fb4bda637f31034be5d25a6338.tar.gz
scala-e46a39797744d1fb4bda637f31034be5d25a6338.tar.bz2
scala-e46a39797744d1fb4bda637f31034be5d25a6338.zip
While investigating the cause of #3984, discove...
While investigating the cause of #3984, discovered that set hashcodes were being calculated like: elems map (_.hashCode) sum This looks totally correct, except that because of set+map semantics it drops all the duplicate hashcodes and therefore calculates the wrong sum anytime there are unequal elements with equal hashcodes. If we're married to the set+map semantics (and I don't know what could be done about it) I had better get a proper -Xlint going because this is one of those traps which shoots bees out of its mouth. No review.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions