8000 [Bug]: Refit interfaces do not implement base interface non refit methods · Issue #1801 · reactiveui/refit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug]: Refit interfaces do not implement base interface non refit methods #1801
Closed
@TimothyMakkison

Description

@TimothyMakkison

Describe the bug 🐞

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()'
var gitHubApi = RestService.For<IGeneratedInterface>("https://api.github.com");

public interface IGeneratedInterface : IBaseInterface
{
    [Get("/users")]
    Task<string> Get();
}

public interface IBaseInterface
{
    void NonRefitMethod();
}

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0