Skip to content

Commit

Permalink
Fix For #1724
Browse files Browse the repository at this point in the history
Common parameter name used in generated code
  • Loading branch information
ChrisPulman committed Jun 24, 2024
1 parent 9435295 commit 1052b6e
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 98 deletions.
4 changes: 2 additions & 2 deletions InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,9 @@ HashSet<string> memberNames
{{
{@return}({returnType})______func(this.Client, ______arguments){configureAwait};
}}
catch (global::System.Exception ex)
catch (global::System.Exception refit_ex)
{{
throw ex;
throw refit_ex;
}}
"
);
Expand Down
5 changes: 5 additions & 0 deletions Refit.Tests/InheritedInterfacesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public interface IImplementTheInterfaceAndUseRefit : IAmInterfaceEWithNoRefit<in
[Get("/DoSomethingElse")]
public new Task DoSomethingElse();
}
public interface IMyClient
{
[Get("/")]
Task MyMethodAsync(string ex);
}
}

namespace Refit.Tests.SeparateNamespaceWithModel
Expand Down
Loading

0 comments on commit 1052b6e

Please sign in to comment.