-
Notifications
You must be signed in to change notification settings - Fork 4.2k
"Find All References" doesn't work on explicit implementation of conversion operator. #54023
Copy link
Copy link
Closed
Labels
Area-IDEConcept-Continuous ImprovementFeature - StaticAbstractMembersInInterfacesNavigation-FARFind all referencesFind all referencesResolution-FixedThe bug has been fixed and/or the requested behavior has been implementedThe bug has been fixed and/or the requested behavior has been implemented
Milestone
Description
interface I4<T> where T : I4<T>
{
abstract static int operator +(T x);
}
class C4_2 : I4<C4_2>
{
// Explicit implementation
static int I4<C4_2>.operator +(C4_2 x) => default;
}
interface I5<T> where T : I5<T>
{
abstract static implicit operator int(T x);
}
class C5_2 : I5<C5_2>
{
// Explicit implementation
static implicit I5<C5_2>.operator int(C5_2 x) => default;
}
Observed:
I couldn't find a way to get "Find All References" working on static implicit I5<C5_2>.operator int(C5_2 x).
Expected:
Works as expected on a + token in static int I4<C4_2>.operator +(C4_2 x), finds the declaration and the call sites. Expect to be able to do something similar with conversion operator.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-IDEConcept-Continuous ImprovementFeature - StaticAbstractMembersInInterfacesNavigation-FARFind all referencesFind all referencesResolution-FixedThe bug has been fixed and/or the requested behavior has been implementedThe bug has been fixed and/or the requested behavior has been implemented
Type
Fields
Give feedbackNo fields configured for issues without a type.