Skip to content

Find All References shows NameOnly ref as Read #34236

@davidwengier

Description

@davidwengier

Apologies if this is a dupe or intentional.

Version Used:
16.0 Preview 4.2

Steps to Reproduce:

This code:

namespace ConsoleApp25
{
    class C
    {
        public void M()
        {
            string x = nameof(M);
        }
    }

    class Unrelated
    {
        public void M()
        {
            string y = nameof(C.M);
        }
    }
}

Run Find All References on M()

Expected Behavior:

Two references, both NameOnly

Actual Behavior:

Two references, one NameOnly and one Read
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions