Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE0060 (Remove unused parameter) false positive for interpolated string handler argument #76578

Open
Youssef1313 opened this issue Dec 29, 2024 · 0 comments
Labels
Area-IDE Bug Feature - IDE0060 Remove unused parameter help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@Youssef1313
Copy link
Member

Youssef1313 commented Dec 29, 2024

Version Used:

VS 17.13 Preview 1

Steps to Reproduce:

public static void M(bool x, [InterpolatedStringHandlerArgument(nameof(x))] ref MyInterpolatedStringHandler y)
{
    // Do something with message. Analyzer will complain that `x` parameter isn't used. But it's actually used as the value will be passed to `MyInterpolatedStringHandler`
}

Diagnostic Id: IDE0060 (Remove unused parameter)

Expected Behavior:

No diagnostic

Actual Behavior:

False positive diagnostic

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 29, 2024
@CyrusNajmabadi CyrusNajmabadi added Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it Feature - IDE0060 Remove unused parameter and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 29, 2024
@CyrusNajmabadi CyrusNajmabadi added this to the Backlog milestone Dec 29, 2024
@github-project-automation github-project-automation bot moved this to InQueue in Small Fixes Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug Feature - IDE0060 Remove unused parameter help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Projects
Status: InQueue
Development

No branches or pull requests

2 participants