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
Generated refit interfaces are invalid if the base interface has a non refit method.
Step to reproduce
// 'Generated.IGeneratedInterface' does not implement interface member 'IBaseInterface.NonRefitMethod()'vargitHubApi= RestService.For<IGeneratedInterface>("https://api.github.com");publicinterfaceIGeneratedInterface:IBaseInterface{[Get("/users")]Task<string>Get();}publicinterfaceIBaseInterface{voidNonRefitMethod();}
Refit should generate stub implementations which throw an error when called to satisfy the interface. Similar to how non refit methods are handled in non derived refit interfaces.
IDE
Rider Windows
The text was updated successfully, but these errors were encountered:
TimothyMakkison
changed the title
[Bug]: Refit tnterface do not implemt base interface non refit methods
[Bug]: Refit interfaces do not implement base interface non refit methods
Sep 3, 2024
Describe the bug 🐞
Generated refit interfaces are invalid if the base interface has a non refit method.
Step to reproduce
Reproduction repository
https://github.com/reactiveui/refit
Expected behavior
Refit should generate stub implementations which throw an error when called to satisfy the interface. Similar to how non refit methods are handled in non derived refit interfaces.
IDE
Rider Windows
The text was updated successfully, but these errors were encountered: