Skip to content
New issue

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

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

Already on GitHub? # to your account

Batch fixer for 'Use auto property' generates 'privateset' with no space #76790

Closed
jnm2 opened this issue Jan 17, 2025 · 0 comments · Fixed by #76791
Closed

Batch fixer for 'Use auto property' generates 'privateset' with no space #76790

jnm2 opened this issue Jan 17, 2025 · 0 comments · Fixed by #76791
Assignees
Labels
Area-IDE Bug help wanted The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone

Comments

@jnm2
Copy link
Contributor

jnm2 commented Jan 17, 2025

Version Used: 17.13.0 Preview 2.1

class C
{
    private int a;
    public int A => a;

    void M()
    {
        nameMustDiffer = true;
    }

    private bool nameMustDiffer;
    public bool B => !nameMustDiffer;
}

Use auto property > Fix all occurrences in document:

class C
{
    public int A { get; }

    void M()
    {
        B = true;
    }
    public bool B {get=> !field;privateset;}
}

Possibly related to #75788.

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

Successfully merging a pull request may close this issue.

2 participants