Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refit breaks with interface inheritance where base doesn't specify refit methods #1061

Closed
clairernovotny opened this issue Feb 5, 2021 · 1 comment · Fixed by #1062
Closed
Labels

Comments

@clairernovotny
Copy link
Member

clairernovotny commented Feb 5, 2021

Forking from: #650

Generic Interface:

public interface IBase<T>
{
        public Task DoSomething(T foo);
}

Refit Interface:

public interface IService  :  IBase<int>
{
        [Post("/api")]
        public Task DoSomething(int foo);
}

and got the same error message:

/InterfaceStubGenerator.Core/Refit.Generator.InterfaceStubGenerator/IService_refit.cs(16,11): error CS0535: 'Generated.FrobIService' does not implement interface member 'IBase.DoSomething(int)'

The issue is that the derived interface contains the refit attribute and we implement all expicitly. So the generated type doesn't actually implement the base.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant