Improve warning slightly.
authorRaja R Harinath <harinath@hurrynot.org>
Mon, 28 Mar 2005 11:00:19 +0000 (11:00 -0000)
committerRaja R Harinath <harinath@hurrynot.org>
Mon, 28 Mar 2005 11:00:19 +0000 (11:00 -0000)
svn path=/trunk/mcs/; revision=42306

mcs/mcs/decl.cs

index e2465349a8440522c440e3a8767748410e0a7d85..f02d267cf9c7baaa2dacf8dbccc71e0c3cf5aa54 100644 (file)
@@ -1432,10 +1432,9 @@ namespace Mono.CSharp {
                                                    !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 @@ namespace Mono.CSharp {
                                                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;
                                        }