From: Raja R Harinath Date: Mon, 28 Mar 2005 11:00:19 +0000 (-0000) Subject: Improve warning slightly. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=fdac31b43f197296dd4893622fadcaa58407739c;hp=a20bdd56e5f1561b987990efafa11cafa9e4a34c;p=mono.git Improve warning slightly. svn path=/trunk/mcs/; revision=42306 --- diff --git a/mcs/mcs/decl.cs b/mcs/mcs/decl.cs index e2465349a84..f02d267cf9c 100644 --- a/mcs/mcs/decl.cs +++ b/mcs/mcs/decl.cs @@ -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; }