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

C# rename default constructor argument which is used as a property #74425

Closed
vsfeedback opened this issue Jul 17, 2024 · 1 comment
Closed

C# rename default constructor argument which is used as a property #74425

vsfeedback opened this issue Jul 17, 2024 · 1 comment

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
The refactoring target is a public sealed record with a default constructor:

public sealed record RenameTarget (string ArgumentToRename);

The ArgumentToRename is used in other classes, as it is publicly available. If a rename (using F2), only the argument name is changed. This immediately causes build errors (of course), because the references are not updated.


Original Comments

Feedback Bot on 7/12/2024, 01:22 AM:

(private comment, text removed)


Original Solutions

(no solutions)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 17, 2024
@Cosifne
Copy link
Member

Cosifne commented Jul 17, 2024

It should be fixed in this #74168

@Cosifne Cosifne self-assigned this Jul 17, 2024
@Cosifne Cosifne added Feature - Rename and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 17, 2024
@Cosifne Cosifne closed this as completed Jul 17, 2024
@sharwell sharwell added this to the 17.12 P1 milestone Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants