Skip to content

Replace method with property refactoring discards trivia #40758

@nxtn

Description

@nxtn

Version Used: Visual Studio 2019 Version 16.5

Steps to Reproduce:

class Class
{
    static bool Value() => default;

    static void Main()
    {
        if (Value()/**/)
        {
        }
    }
}
+Expected Behavior
-Actual Behavior
class Class
{
    static bool Value => default;

    static void Main()
    {
+        if (Value/**/)
-        if (Value)
        {
        }
    }
}

Metadata

Metadata

Assignees

Labels

Area-IDEBugIDE-CodeStyleBuilt-in analyzers, fixes, and refactoringshelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions