Skip to content

"Extract Interface" refactoring doesn't offer to add static members to the interface #54019

@AlekseyTs

Description

@AlekseyTs

Invoke "Extract interface" refactoring on this class

class TestExtractInterface
{
    public void M1() { }
    public static void M2() { }
}

Observed:
There is no offer to include M2 into the interface, only M1 is in the list.

Expected:
Should offer M2 as well. Should decide if it should be included by default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions