summaryrefslogtreecommitdiff
path: root/build.detach.xml
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-11-01 12:58:43 -0700
committerPaul Phillips <paulp@improving.org>2012-11-02 00:07:25 -0700
commit64258cf019fb7ebfd9a78451236dac9c676f120b (patch)
treee573ddc51f7b5c6b262f13ad4b3c1713491d13f3 /build.detach.xml
parentdd803205a0796068661b7a180c583fa1424cd3ef (diff)
downloadscala-64258cf019fb7ebfd9a78451236dac9c676f120b.tar.gz
scala-64258cf019fb7ebfd9a78451236dac9c676f120b.tar.bz2
scala-64258cf019fb7ebfd9a78451236dac9c676f120b.zip
Fixed bug in Symbol filtering.
If you called filter on an overloaded symbol, it tried to return itself if no alternatives were filtered out. The test being performed, however, would only ever be true if the list call was to the (non-existent) "filterConserve", which is to say that in general, xs ne xs.filter(_ => true) The upshot is that we were creating a new symbol on every filter call to an overloaded symbol. To make completely sure this would be a performance winner, I also eliminated the closure and perform the filtering locally.
Diffstat (limited to 'build.detach.xml')
0 files changed, 0 insertions, 0 deletions