Skip to content

Commit

Permalink
Fix for Common Parameter Name used in Generated code (#1735)
Browse files Browse the repository at this point in the history
* Fix For #1724

Common parameter name used in generated code

* Use more standard name as other generated code
  • Loading branch information
ChrisPulman authored Jun 26, 2024
1 parent 03d7bbc commit 9605c24
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 ______ex)
{{
throw ex;
throw ______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 9605c24

Please sign in to comment.