We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7e964bb commit992a3d6Copy full SHA for 992a3d6
src/fsharp/ConstraintSolver.fs
@@ -2363,9 +2363,10 @@ and ResolveOverloading
2363
2364
2365
letbestMethods=
2366
- applicableMeths|> List.choose(fun candidate->
2367
-if applicableMeths|> List.forall(fun other->
2368
- p13 candidate=== p13 other||// REVIEW: change this needless use of pointer equality to be an index comparison
+letindexedApplicableMeths= applicableMeths|> List.indexed
+ indexedApplicableMeths|> List.choose(fun(i,candidate)->
+if indexedApplicableMeths|> List.forall(fun(j,other)->
2369
+ i= j||
2370
letres= better candidate other
2371
//eprintfn "\n-------\nCandidate: %s\nOther: %s\nResult: %d\n" (NicePrint.stringOfMethInfo amap m denv (fst candidate).Method) (NicePrint.stringOfMethInfo amap m denv (fst other).Method) res
2372
res>0)then