Skip to content

Commit

Permalink
Remove Result<'T> alias
Browse files Browse the repository at this point in the history
Leads to build errors due to ambiguities.
  • Loading branch information
hyazinthh committed Jul 9, 2024
1 parent 9d01ed8 commit 07a87d3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,8 @@ module Prelude =
Buffer.MemoryCopy(source.ToPointer(), destination.ToPointer(), destinationSizeInBytes, sourceBytesToCopy)


type Result<'T> = Result<'T, string>

(* Error datastructure *)
[<Obsolete("Use Result<'T> instead.")>]
[<Obsolete("Use Result<'T, string> instead.")>]
type Error<'T> =
| Success of 'T
| Error of string
Expand Down

0 comments on commit 07a87d3

Please sign in to comment.