return rmg;
}
- public bool AmbiguousCall (ResolveContext ec, MethodBase ambiguous)
+ public bool AmbiguousCall (ResolveContext ec, MethodSpec ambiguous)
{
- ec.Report.SymbolRelatedToPreviousError ((MethodInfo) mg);
- ec.Report.SymbolRelatedToPreviousError (ambiguous);
+ ec.Report.SymbolRelatedToPreviousError (mg.BestCandidate.MetaInfo);
+ ec.Report.SymbolRelatedToPreviousError (ambiguous.MetaInfo);
ec.Report.Error (1940, loc, "Ambiguous implementation of the query pattern `{0}' for source type `{1}'",
mg.Name, mg.InstanceExpression.GetSignatureForError ());
return true;
}
- public bool NoExactMatch (ResolveContext ec, MethodBase method)
+ public bool NoExactMatch (ResolveContext ec, MethodSpec method)
{
- AParametersCollection pd = TypeManager.GetParameterData (method);
+ var pd = method.Parameters;
Type source_type = pd.ExtensionMethodType;
if (source_type != null) {
Argument a = arguments [0];
}
}
- if (!TypeManager.IsGenericMethod (method))
+ if (!method.IsGenericMethod)
return false;
if (mg.Name == "SelectMany") {