summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-08-05 17:37:45 +0000
committerPaul Phillips <paulp@improving.org>2011-08-05 17:37:45 +0000
commitb39a7044d60df5b97539102f2ca80486e9b5fcf5 (patch)
treeff8c47bcc80ba9225f13ec64507299e4ebba4a21 /src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
parentf7f5b50848c8c0efd30abe17467d1ef443760ec5 (diff)
downloadscala-b39a7044d60df5b97539102f2ca80486e9b5fcf5.tar.gz
scala-b39a7044d60df5b97539102f2ca80486e9b5fcf5.tar.bz2
scala-b39a7044d60df5b97539102f2ca80486e9b5fcf5.zip
Oops, let unnecessary boxing creep into that la...
Oops, let unnecessary boxing creep into that last commit, no review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala b/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
index 9613866986..9a8bcca2ba 100644
--- a/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala
@@ -183,7 +183,8 @@ trait SyntheticMethods extends ast.TreeDSL {
val valDef = ValDef(valSym, typeCast)
val canEqualCheck = gen.mkMethodCall(valSym, nme.canEqual_, Nil, List(This(clazz)))
val pairwise = clazz.caseFieldAccessors map { accessor =>
- (Select(This(clazz), accessor) MEMBER_== Select(Ident(valSym), accessor))
+ val method = accessor.tpe member nme.EQ
+ fn(Select(This(clazz), accessor), method, Select(Ident(valSym), accessor))
}
(