Skip to content

Duplicate results for Find All Refs on a record primary constructor parameter #80901

@davidwengier

Description

@davidwengier

Using VS main.

Repro:

  1. Create a console app,
  2. Multi-target it to a few frameworks
  3. Set program.cs to:
var r = new Record("My Record Title");
Console.WriteLine(r.PrimaryConstructorParametrr);

var r2 = new Record2();
Console.WriteLine(r2.Property);

public record Record(string? PrimaryConstructorParametrr);

public record Record2()
{
    public string? Property { get; init; }
}
  1. Run find all refs on the primary constructor parameter, and the property, and observe the difference.

Actual:
1 result per target framework for the primary constructor parameter
Image

Expected:
Would be good if duplicate results were combined.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions