Skip to content

Commit 2de9d1a

Browse files
committed
equality & comparison constraints for ^Step param in .. .. operator
Fixes #6238. Compiler does not infer this automatically through `and default`.
1 parent bcb56db commit 2de9d1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/FSharp.Core/prim-types.fsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3758,6 +3758,8 @@ namespace Microsoft.FSharp.Core
37583758
and ^Step: (static member Zero: ^Step)
37593759
and ^T: equality
37603760
and ^T: comparison
3761+
and ^Step: equality
3762+
and ^Step: comparison
37613763
and default ^Step: ^T
37623764
and default ^T: int
37633765

0 commit comments

Comments
 (0)