Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

Fixes #64904

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner December 7, 2024 21:22
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 7, 2024
@CyrusNajmabadi
Copy link
Member Author

@ToddGrun @JoeRobich ptal

{
void M()
{
void [||]M2([A(nameof(b), P = nameof(b))] string b)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A(nameof(b), P = nameof(b

would it be worth testing that it doesn't use nameof for something for P in the following?

void M2([A(nameof(b), P = "b")] string b)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nah :)

and basically i dont' care. the chance of the user writing that seems miniscule.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okey dokey!

Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@CyrusNajmabadi CyrusNajmabadi merged commit 665ef18 into dotnet:main Dec 9, 2024
25 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the convertLocalNameof branch December 9, 2024 18:41
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Dec 9, 2024
@dibarbet dibarbet modified the milestones: Next, 17.13 P3 Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Convert to method": nameof expression in attributes is converted to string literal

3 participants