-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-IDEBugFeature - IDE0025Use expression body for propertiesUse expression body for propertiesIDE-CodeStyleBuilt-in analyzers, fixes, and refactoringsBuilt-in analyzers, fixes, and refactoringsIDE-FormatterCode formatter and/or smart indentCode formatter and/or smart indenthelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Description
Version Used:
3.3.0-beta3-19413-06+ac06df1bffb7b7fd0e5bf63cc91921af76b21e03
Steps to Reproduce:
using System;
class Program
{
static void Main() => Console.WriteLine(Foo);
private static string Foo // cool prop
{
get { return "blah"; }
}
}Run IDE0025.
Expected Behavior:
using System;
class Program
{
static void Main() => Console.WriteLine(Foo);
private static string Foo => // cool prop
"blah";
}or
using System;
class Program
{
static void Main() => Console.WriteLine(Foo);
private static string Foo =>
// cool prop
"blah";
}or
using System;
class Program
{
static void Main() => Console.WriteLine(Foo);
// cool prop
private static string Foo => "blah";
}Actual Behavior:
using System;
class Program
{
static void Main() => Console.WriteLine(Foo);
private static string Foo // cool prop
=> "blah";
}Metadata
Metadata
Assignees
Labels
Area-IDEBugFeature - IDE0025Use expression body for propertiesUse expression body for propertiesIDE-CodeStyleBuilt-in analyzers, fixes, and refactoringsBuilt-in analyzers, fixes, and refactoringsIDE-FormatterCode formatter and/or smart indentCode formatter and/or smart indenthelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Type
Projects
Status
Completed