Skip to content

RS0046: Refactor call to 'LookupSymbols' to avoid name clash in arguments #3707

Open

Description

Relates to #3352

I could not find which position to pass to the LookupSymbols call to avoid a name clash between the current parameter and the next.

public void M(string? sOpt, string? s) // How to ensure that the lookup for s returns the parameter?
{
}

See https://github.com/dotnet/roslyn-analyzers/pull/3352/files#diff-311b2f6fab1f2e00cefcbdf6e056dd96R202-R233

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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