Skip to content

Couldn't find a way to "Go To Definition" from an implicit/explicit implementation of a conversion operator #54024

@AlekseyTs

Description

@AlekseyTs
interface I5<T> where T : I5<T>
{
    abstract static implicit operator int(T x);
}

class C5_1 : I5<C5_1>
{
    // Implicit implementation
    public static implicit operator int(C5_1 x) => default;
}

class C5_2 : I5<C5_2>
{

    // Explicit implementation
    static implicit I5<C5_2>.operator int(C5_2 x) => default;
}

I couldn't find a way to "Go To Definition" from an implicit/explicit implementation of a conversion operator. This works for methods/properties/events from member name in implementation. It also works for non-conversion operators from an operator token. It feels like there should be a way to do the same for an implementation of a conversion operator.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions