From b39a7044d60df5b97539102f2ca80486e9b5fcf5 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 5 Aug 2011 17:37:45 +0000 Subject: Oops, let unnecessary boxing creep into that la... Oops, let unnecessary boxing creep into that last commit, no review. --- src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) } ( -- cgit v1.2.3