Skip to content

"Find All References" doesn't work on static member name in declaration of explicit interface implementation for properties and events #54022

@AlekseyTs

Description

@AlekseyTs
interface I2
{
    abstract static int P2 { get; set; }
}

class C2_2 : I2
{
    // Explicit implementation
    static int I2.P2 { get; set; }
}

interface I3
{
    abstract static event System.Action E3;
}

class C3_2 : I3
{
    // Explicit implementation
    static event System.Action I3.E3
    {
        add { }
        remove { }
    }
}

Try to "Find All References" on P2 in I2.P2 and on E3 in I3.E3.

Observed:
Nothing is found.

Expected:
The declaration as well as call sites should be found as it works for methods.

Note, it looks like this also doesn't work for instance properties/events.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions