Skip to content

Commit

Permalink
Merge pull request #257 from fsprojects/remove-redundant-typar
Browse files Browse the repository at this point in the history
Fix warning FS3559 for consumers of `'TaskLike`
  • Loading branch information
abelbraaksma authored Aug 16, 2024
2 parents 8ddba79 + 9ea3177 commit d2713a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FSharp.Control.TaskSeq/TaskSeqBuilder.fs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ module LowPriority =
// - Task<'T> (because it only implements GetResult() -> unit, not GetResult() -> 'TResult)

[<NoEagerConstraintApplication>]
member inline _.Bind< ^TaskLike, 'T, 'U, ^Awaiter, 'TOverall
member inline _.Bind< ^TaskLike, 'T, 'U, ^Awaiter
when ^TaskLike: (member GetAwaiter: unit -> ^Awaiter)
and ^Awaiter :> ICriticalNotifyCompletion
and ^Awaiter: (member get_IsCompleted: unit -> bool)
Expand Down
2 changes: 1 addition & 1 deletion src/FSharp.Control.TaskSeq/TaskSeqBuilder.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ module LowPriority =
type TaskSeqBuilder with

[<NoEagerConstraintApplication>]
member inline Bind< ^TaskLike, 'T, 'U, ^Awaiter, 'TOverall> :
member inline Bind< ^TaskLike, 'T, 'U, ^Awaiter> :
task: ^TaskLike * continuation: ('T -> ResumableTSC<'U>) -> ResumableTSC<'U>
when ^TaskLike: (member GetAwaiter: unit -> ^Awaiter)
and ^Awaiter :> ICriticalNotifyCompletion
Expand Down

0 comments on commit d2713a1

Please sign in to comment.