Skip to content

Commit

Permalink
equality & comparison constraints for ^Step param in .. .. operator
Browse files Browse the repository at this point in the history
Fixes #6238. Compiler does not infer this automatically through `and default`.
  • Loading branch information
abelbraaksma committed May 10, 2024
1 parent 08dd9de commit 539ba22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FSharp.Core/prim-types.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -3758,6 +3758,8 @@ namespace Microsoft.FSharp.Core
and ^Step: (static member Zero: ^Step)
and ^T: equality
and ^T: comparison
and ^Step: equality
and ^Step: comparison
and default ^Step: ^T
and default ^T: int

Expand Down

0 comments on commit 539ba22

Please sign in to comment.