support for dotnet9 compilation
All checks were successful
.NET Test / test (push) Successful in 2m2s

This commit is contained in:
2025-07-29 23:22:28 +04:00
parent dd81fecdd6
commit 595b63dc23
7 changed files with 27 additions and 19 deletions

View File

@@ -5,7 +5,7 @@ namespace Just.Railway;
public static partial class ResultExtensions
{
#region Match (with fallback)
public static T Match<T>(this in Result<T> result, Func<Error, T> fallback)
{
return result.State switch
@@ -15,7 +15,7 @@ public static partial class ResultExtensions
_ => throw new ResultNotInitializedException(nameof(result))
};
}
public static async Task<T> Match<T>(this Result<T> result, Func<Error, Task<T>> fallback)
{
return result.State switch
@@ -77,7 +77,7 @@ public static partial class ResultExtensions
}
#endregion
#region Merge
public static Result Merge(this IEnumerable<Result> results)