Skip to content

Reference highlighting does not work for partial constructors #81064

@jhinder

Description

@jhinder

Version Used: VS 18.0.0 Insiders

Steps to Reproduce:
Place the caret on the names of the class members (C, M, P, E) in turn.

partial class C
{
    partial C();
    partial C()
    {
    }

    partial void M();
    partial void M()
    {
    }

    partial int P { get; set; }
    partial int P { get { return 0; } set { } }


    partial event EventHandler E;
    partial event EventHandler E { add { } remove { } }
}

Expected Behavior:
Reference highlighting works for all members.

Actual Behavior:
Reference highlighting does not work on the constructor, but on all other members.

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions