Skip to content

Move to block body refactoring dropping trivia #53532

@333fred

Description

@333fred

Version Used: 16.9.6

Steps to Reproduce:

class C
{
    void M()
        // Test
        => Console.WriteLine();
}

Invoke the "Use block body" refactoring on the body of M.

Expected Behavior:

class C
{
    void M()
    {
        // Test
        return Console.WriteLine();
    }
}

Actual Behavior:

class C
{
    void M()
    {
        return Console.WriteLine();
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    4 - In ReviewA fix for the issue is submitted for review.Area-IDEBughelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions