@@ -2225,7 +2225,8 @@ and ResolveOverloading
22252225| [] ->
22262226// OK, we failed. Collect up the errors from overload resolution and the possible overloads
22272227let errors =
2228- ( candidates|> List.choose( fun calledMeth ->
2228+ candidates
2229+ |> List.choose( fun calledMeth ->
22292230match CollectThenUndo( fun newTrace ->
22302231let cxsln = Option.map( fun traitInfo -> ( traitInfo, MemberConstraintSolutionOfMethInfo csenv.SolverState m calledMeth.Method calledMeth.CalledTyArgs)) cx
22312232 CanMemberSigsMatchUpToCheck
@@ -2238,7 +2239,7 @@ and ResolveOverloading
22382239 reqdRetTyOpt
22392240 calledMeth) with
22402241| OkResult_ -> None
2241- | ErrorResult(_, exn) -> Some( calledMeth, exn)))
2242+ | ErrorResult(_, exn) -> Some( calledMeth, exn))
22422243
22432244 None, ErrorD( failOverloading( FSComp.SR.csNoOverloadsFound methodName) errors), NoTrace
22442245
@@ -2310,10 +2311,9 @@ and ResolveOverloading
23102311
23112312// check regular args. The argument counts will only be different if one is using param args
23122313let c =
2313- if ( candidate.TotalNumUnnamedCalledArgs= other.TotalNumUnnamedCalledArgs) then
2314-
2314+ if candidate.TotalNumUnnamedCalledArgs= other.TotalNumUnnamedCalledArgsthen
23152315// For extension members, we also include the object argument type, if any in the comparison set
2316- //THis matches C#, where all extension members are treated and resolved as "static" methods calls
2316+ //This matches C#, where all extension members are treated and resolved as "static" methods calls
23172317let cs =
23182318( if candidate.Method.IsExtensionMember&& other.Method.IsExtensionMemberthen
23192319let objArgTys1 = candidate.CalledObjArgTys( m)