diff --git a/src/FSharp.Core/prim-types.fs b/src/FSharp.Core/prim-types.fs index 211496b99d1..295fb288b0d 100644 --- a/src/FSharp.Core/prim-types.fs +++ b/src/FSharp.Core/prim-types.fs @@ -1090,6 +1090,9 @@ namespace Microsoft.FSharp.Core | _ -> FailGenericComparison xobj + | _ when GenericCompare comp (xobj.GetType().FullName,yobj.GetType().FullName) <> 0 -> + GenericCompare comp (xobj.GetType().FullName, yobj.GetType().FullName) + // Check for IStructuralComparable | (:? IStructuralComparable as x),_ -> x.CompareTo(yobj,comp)