Permalink
Browse files

fix bug in OverrideEqualsGetHashCodeMethods refactoring: do not add o…

…verride modifier to methods defined by IEquatable<T>
  • Loading branch information...
1 parent 40ae341 commit 593d04dde519886fdbd4d93e74b789cc453b82f9 @siegfriedpammer siegfriedpammer committed Oct 27, 2011
@@ -286,7 +286,7 @@ List<MethodDeclaration> CreateEqualsOverrides(IClass currentClass)
// IEquatable implementation:
method = new MethodDeclaration {
Name = "Equals",
- Modifier = Modifiers.Public | Modifiers.Override,
+ Modifier = Modifiers.Public,
TypeReference = boolReference
};
method.Parameters.Add(new ParameterDeclarationExpression(currentType, "other"));

0 comments on commit 593d04d

Please sign in to comment.