Skip to content

Commit

Permalink
2010-05-28 Marek Safar <marek.safar@gmail.com>
Browse files Browse the repository at this point in the history
	A fix for bug #609049
	* ecore.cs: Don't ignore override methods when looking for base
	member.


svn path=/trunk/mcs/; revision=158087
  • Loading branch information
marek-safar committed May 28, 2010
1 parent 87eb8ff commit d61eb6d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mcs/mcs/ChangeLog
@@ -1,3 +1,9 @@
2010-05-28 Marek Safar <marek.safar@gmail.com>

A fix for bug #609049
* ecore.cs: Don't ignore override methods when looking for base
member.

2010-05-27 Marek Safar <marek.safar@gmail.com>

A fix for bugs #608007, #572540, #566130, #476358
Expand Down
6 changes: 5 additions & 1 deletion mcs/mcs/ecore.cs
Expand Up @@ -3376,8 +3376,12 @@ protected virtual int GetApplicableParametersCount (MethodSpec method, AParamete
protected virtual IList<MemberSpec> GetBaseTypeMethods (ResolveContext rc, TypeSpec type)
{
var arity = type_arguments == null ? -1 : type_arguments.Count;
BindingRestriction restrictions = BindingRestriction.AccessibleOnly;
if (!is_base)
restrictions |= BindingRestriction.NoOverrides;

return TypeManager.MemberLookup (rc.CurrentType, null, type,
MemberKind.Method, BindingRestriction.AccessibleOnly | BindingRestriction.NoOverrides,
MemberKind.Method, restrictions,
Name, arity, null);
}

Expand Down

0 comments on commit d61eb6d

Please sign in to comment.