diff options
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/SyntheticMethods.scala')
-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)) } ( |