@@ -1992,7 +1992,7 @@ and ArgsEquivInsideUndo (csenv:ConstraintSolverEnv) isConstraint calledArg (Call
19921992if not ( typeEquiv csenv.g calledArgTy callerArgTy) then ErrorD( Error( FSComp.SR.csArgumentTypesDoNotMatch(), m)) else
19931993 CompleteD
19941994
1995- and ReportNoCandidatesError ( csenv : ConstraintSolverEnv ) ( nUnnamedCallerArgs , nNamedCallerArgs ) methodName ad ( calledMethGroup : CalledMeth < _ > list ) =
1995+ and ReportNoCandidatesError ( csenv : ConstraintSolverEnv ) ( nUnnamedCallerArgs , nNamedCallerArgs ) methodName ad ( calledMethGroup : CalledMeth < _ > list ) isSequential =
19961996
19971997let amap = csenv.amap
19981998let m = csenv.m
@@ -2054,7 +2054,7 @@ and ReportNoCandidatesError (csenv:ConstraintSolverEnv) (nUnnamedCallerArgs,nNam
20542054 cmeth.ArgSets
20552055|> List.exists( fun argSet ->
20562056 argSet.UnnamedCallerArgs
2057- |> List.exists( fun c -> c.Expr.ToString () .EndsWith " Sequential " ))
2057+ |> List.exists( fun c -> isSequential c.Expr))
20582058
20592059if couldBeNameArgsthen
20602060 Error( FSComp.SR.csCtorSignatureMismatchArityProp( methodName, nReqd, nActual, signature), m)
@@ -2106,6 +2106,13 @@ and ReportNoCandidatesError (csenv:ConstraintSolverEnv) (nUnnamedCallerArgs,nNam
21062106 Error( msg, m)
21072107|> ErrorD
21082108
2109+ and ReportNoCandidatesErrorExpr csenv callerArgCounts methodName ad calledMethGroup =
2110+ let isSequential e = match ewith | Expr.Sequential(_,_,_,_,_) -> true | _ -> false
2111+ ReportNoCandidatesError csenv callerArgCounts methodName ad calledMethGroup isSequential
2112+
2113+ and ReportNoCandidatesErrorSynExpr csenv callerArgCounts methodName ad calledMethGroup =
2114+ let isSequential e = match ewith | SynExpr.Sequential(_,_,_,_,_) -> true | _ -> false
2115+ ReportNoCandidatesError csenv callerArgCounts methodName ad calledMethGroup isSequential
21092116
21102117// Resolve the overloading of a method
21112118// This is used after analyzing the types of arguments
@@ -2138,7 +2145,7 @@ and ResolveOverloading
21382145 None, ErrorD( Error( FSComp.SR.csMethodNotFound( methodName), m)), NoTrace
21392146
21402147| _,[] when not isOpConversion->
2141- None, ReportNoCandidatesError csenv callerArgCounts methodName ad calledMethGroup, NoTrace
2148+ None, ReportNoCandidatesErrorExpr csenv callerArgCounts methodName ad calledMethGroup, NoTrace
21422149
21432150| _,_ ->
21442151
@@ -2447,7 +2454,7 @@ let UnifyUniqueOverloading
24472454| [],_ ->
24482455 ErrorD( Error( FSComp.SR.csMethodNotFound( methodName), m))
24492456| _,[] ->
2450- ReportNoCandidatesError csenv callerArgCounts methodName ad calledMethGroup
2457+ ReportNoCandidatesErrorSynExpr csenv callerArgCounts methodName ad calledMethGroup
24512458++ ( fun () -> ResultDfalse )
24522459| _ ->
24532460 ResultDfalse