diff options
author | Paul Phillips <paulp@improving.org> | 2011-08-05 17:37:45 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-08-05 17:37:45 +0000 |
commit | b39a7044d60df5b97539102f2ca80486e9b5fcf5 (patch) | |
tree | ff8c47bcc80ba9225f13ec64507299e4ebba4a21 | |
parent | f7f5b50848c8c0efd30abe17467d1ef443760ec5 (diff) | |
download | scala-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.
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala | 3 |
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)) } ( |