// FIXME: report the old/new permissions?
//
Report.Error (
- 507, Location, parent.MakeName (Name) +
+ 31048, Location, parent.MakeName (Name) +
": can't change the access modifiers when overriding inherited " +
"member `" + name + "'");
}
/// </summary>
NameExists,
- /// <summary>
- /// Returned if the declation being added to the
- /// name space clashes with its container name.
- ///
- /// The only exceptions for this are constructors
- /// and static constructors
- /// </summary>
- EnclosingClash,
-
/// <summary>
/// Returned if a constructor was created (because syntactically
/// it looked like a constructor) but was not (because the name
/// </summary>
protected AdditionResult IsValid (string name)
{
- if (name == Basename)
- return AdditionResult.EnclosingClash;
-
if (defined_names.Contains (name))
return AdditionResult.NameExists;
void AddMembers (MemberTypes mt, BindingFlags bf, IMemberContainer container)
{
MemberList members = container.GetMembers (mt, bf);
- BindingFlags new_bf = (container == Container) ?
+ /*BindingFlags new_bf = (container == Container) ?
bf | BindingFlags.DeclaredOnly : bf;
-
+ */
foreach (MemberInfo member in members) {
string name = member.Name;
// iteration of this loop if there are no members with the name we're
// looking for in the current class).
if (entry.Container != current) {
- if (declared_only || DoneSearching (list))
+ //if (declared_only || DoneSearching (list))
+ if (declared_only)
break;
current = entry.Container;