[Mono-devel-list] Weird warnings using mcs svn on Windows

Raja R Harinath rharinath at novell.com
Tue Apr 19 03:02:53 EDT 2005


Hi,

Atsushi Eno <atsushi at ximian.com> writes:

> I made a fix for this problem; the type for Finalize() is not
> System.Object unless the type which is being added is System.Object.
[snip]
> Index: decl.cs
> ===================================================================
> --- decl.cs	(revision 43229)
> +++ decl.cs	(working copy)
> @@ -1438,8 +1438,7 @@
>  						//
>  						if ((member.Name != "Invoke" ||
>  						     !type.IsSubclassOf (TypeManager.multicast_delegate_type)) &&
> -						    (member.Name != "Finalize" ||
> -						     type != TypeManager.object_type)) {
> +						    member.Name != "Finalize") {
>  							Report.SymbolRelatedToPreviousError (base_method);
>  							Report.Warning (-28, 
>  								"The method '{0}' is marked 'override'," + 

Oh.  I think I'll fix it slightly differently.

- Hari



More information about the Mono-devel-list mailing list