Ver Fonte

2002-04-12 Ravi Pratap <[email protected]>

	* expression.cs (VerifyArgumentsCompat): Implement Miguel's suggestion
	and get rid of is_delegate parameter.

	* everywhere : update.

svn path=/trunk/mcs/; revision=3791
Ravi Pratap M há 24 anos atrás
pai
commit
2d9439b962
3 ficheiros alterados com 11 adições e 4 exclusões
  1. 7 0
      mcs/mcs/ChangeLog
  2. 1 1
      mcs/mcs/delegate.cs
  3. 3 3
      mcs/mcs/expression.cs

+ 7 - 0
mcs/mcs/ChangeLog

@@ -1,3 +1,10 @@
+2002-04-12  Ravi Pratap  <[email protected]>
+
+	* expression.cs (VerifyArgumentsCompat): Implement Miguel's suggestion
+	and get rid of is_delegate parameter.
+
+	* everywhere : update.
+	
 2002-04-12  Ravi Pratap  <[email protected]>
 
 	* cs-parser.jay (compilation_unit): Revamp completely to use

+ 1 - 1
mcs/mcs/delegate.cs

@@ -378,7 +378,7 @@ namespace Mono.CSharp {
 			}
 
 			return Invocation.VerifyArgumentsCompat (ec, args, arg_count, mb, !not_params_method,
-								 true, delegate_type, loc);
+								 delegate_type, loc);
 		}
 		
 		/// <summary>

+ 3 - 3
mcs/mcs/expression.cs

@@ -3437,7 +3437,7 @@ namespace Mono.CSharp {
 			//
 
 			if (VerifyArgumentsCompat (ec, Arguments, argument_count, method,
-						   chose_params_expanded, false, null, loc))
+						   chose_params_expanded, null, loc))
 				return method;
 			else
 				return null;
@@ -3447,7 +3447,7 @@ namespace Mono.CSharp {
 							  int argument_count,
 							  MethodBase method, 
 							  bool chose_params_expanded,
-							  bool is_delegate, Type delegate_type,
+							  Type delegate_type,
 							  Location loc)
 		{
 			ParameterData pd = GetParameterData (method);
@@ -3468,7 +3468,7 @@ namespace Mono.CSharp {
 
 					if (conv == null) {
 						if (!Location.IsNull (loc)) {
-							if (!is_delegate) 
+							if (delegate_type == null) 
 								Error (1502, loc,
 								       "The best overloaded match for method '" +
 								       FullMethodDesc (method) +