+2005-03-22 Martin Baulig <martin@ximian.com>
+
+ * delegate.cs (Delegate.VerifyMethod): Call
+ TypeManager.GetParameterData() after method inference, not before.
+
2005-03-22 Martin Baulig <martin@ximian.com>
* typemanager.cs (TypeManager.LookupMemberCache): Add support for
MethodGroupExpr mg = GetInvokeMethod (ec, delegate_type, loc);
if (mg == null)
return null;
- ParameterData pd = TypeManager.GetParameterData (mb);
MethodBase invoke_mb = mg.Methods [0];
ParameterData invoke_pd = TypeManager.GetParameterData (invoke_mb);
!TypeManager.InferTypeArguments (ec, invoke_pd, ref mb))
return null;
+ ParameterData pd = TypeManager.GetParameterData (mb);
if (invoke_pd.Count != pd.Count)
return null;
return null;
}
}
-
+
if (!Delegate.VerifyApplicability (ec, del_type, Arguments, loc))
return null;