Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8a20620

Browse files
committed
cleanup
1 parent8bc97bc commit8a20620

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/fsharp/ConstraintSolver.fs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,7 +2225,8 @@ and ResolveOverloading
22252225
|[]->
22262226
// OK, we failed. Collect up the errors from overload resolution and the possible overloads
22272227
leterrors=
2228-
(candidates|> List.choose(fun calledMeth->
2228+
candidates
2229+
|> List.choose(fun calledMeth->
22292230
match CollectThenUndo(fun newTrace->
22302231
letcxsln= 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
23122313
letc=
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
23172317
letcs=
23182318
(if candidate.Method.IsExtensionMember&& other.Method.IsExtensionMemberthen
23192319
letobjArgTys1= candidate.CalledObjArgTys(m)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp