summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-02-04 12:26:42 +0000
committerPaul Phillips <paulp@improving.org>2010-02-04 12:26:42 +0000
commit9ee1f2f3b8ed91897bb298592f8a600ff5e4622d (patch)
treea2959e3eeaecb558d13a279404d35fb174df7ee7 /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
parent93277ea0201f139e829cfd7248142a0c5898d9ce (diff)
downloadscala-9ee1f2f3b8ed91897bb298592f8a600ff5e4622d.tar.gz
scala-9ee1f2f3b8ed91897bb298592f8a600ff5e4622d.tar.bz2
scala-9ee1f2f3b8ed91897bb298592f8a600ff5e4622d.zip
Unique's seeming victory is overruled by commit...
Unique's seeming victory is overruled by committee. It is "distinct", not "unique", wherein lies the nub. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index 4f414893f8..55500c7f17 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -190,7 +190,7 @@ abstract class RefChecks extends InfoTransform {
case List(MixinOverrideError(_, msg)) =>
unit.error(clazz.pos, msg)
case MixinOverrideError(member, msg) :: others =>
- val others1 = others.map(_.member.name.decode).filter(member.name.decode != _).unique
+ val others1 = others.map(_.member.name.decode).filter(member.name.decode != _).distinct
unit.error(
clazz.pos,
msg+(if (others1.isEmpty) ""