Author: raja
Date: 2005-03-28 06:00:19 -0500 (Mon, 28 Mar 2005)
New Revision: 42306

Modified:
   trunk/mcs/mcs/decl.cs
Log:
Improve warning slightly.


Modified: trunk/mcs/mcs/decl.cs
===================================================================
--- trunk/mcs/mcs/decl.cs       2005-03-28 10:45:48 UTC (rev 42305)
+++ trunk/mcs/mcs/decl.cs       2005-03-28 11:00:19 UTC (rev 42306)
@@ -1432,10 +1432,9 @@
                                                    !type.IsSubclassOf 
(TypeManager.multicast_delegate_type)) {
                                                        
Report.SymbolRelatedToPreviousError (base_method);
                                                        Report.Warning (-28, 
-                                                               "{0} contains a 
method '{1}' that is marked " + 
-                                                               " virtual, but 
doesn't appear to have a slot." + 
-                                                               "  The method 
may be ignored during overload resolution", 
-                                                               type, 
base_method);
+                                                               "The method 
'{0}' is marked virtual, but doesn't appear to have a slot." + 
+                                                               "  It may be 
ignored during overload resolution", 
+                                                               
TypeManager.CSharpSignature (base_method));
                                                }
                                                goto skip;
                                        }
@@ -1452,10 +1451,9 @@
                                                if (new_base_method == 
base_method) {
                                                        
Report.SymbolRelatedToPreviousError (base_method);
                                                        Report.Warning (-28, 
-                                                               "{0} contains a 
method '{1}' that is marked " + 
-                                                               " virtual, but 
doesn't appear to have a slot." + 
+                                                               "The method 
'{0}' is marked virtual, but doesn't appear to have a slot." + 
                                                                "  The method 
may be ignored during overload resolution", 
-                                                               type, 
base_method);
+                                                               
TypeManager.CSharpSignature (base_method));
                                                }
                                                base_method = new_base_method;
                                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to