* class.cs (TypeContainer.AddMethod): Adding methods do not use IsValid,
but this is required to check for a method name being the same as
the containing class.
Handle this now.
svn path=/trunk/mcs/; revision=6040
+2002-07-22 Miguel de Icaza <miguel@ximian.com>
+
+ * class.cs (TypeContainer.AddMethod): Adding methods do not use IsValid,
+ but this is required to check for a method name being the same as
+ the containing class.
+
+ Handle this now.
+
2002-07-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* interface.cs: initialize variable.
if (value != null && (!(value is Method)))
return AdditionResult.NameExists;
+ if (name == Basename)
+ return AdditionResult.EnclosingClash;
+
if (methods == null)
methods = new ArrayList ();