You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an interface inherits a generic interface with the same name but different casing source generation fails for all interfaces.
Step to reproduce
If you include these interfaces in the project source generation will fail for all Refit interfaces. Note the difference casing in IexampleClient and IExampleClient<Example>.
namespace Refit.Repro
public class Example
{
public string Name { get; set; }
}
public interface IexampleClient : IExampleClient<Example>
{
}
public interface IExampleClient<TEntity>
where TEntity : Example, new()
{
[Get("/get")]
Task<TEntity> Get();
}
Describe the bug 🐞
When an interface inherits a generic interface with the same name but different casing source generation fails for all interfaces.
Step to reproduce
If you include these interfaces in the project source generation will fail for all Refit interfaces. Note the difference casing in
IexampleClient
andIExampleClient<Example>
.Reproduction repository
https://github.com/reactiveui/refit
Expected behavior
The source generation should not fail and generate implementations for the interfaces.
Screenshots 🖼️
No response
IDE
Jetbrains Rider
Operating system
Windows 11
Version
23H2 (OS Build 22631.3447)
Device
No response
Refit Version
7.0.0
Additional information ℹ️
No response
The text was updated successfully, but these errors were encountered: