csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

More Lambda Edgecases

Open belav opened this issue 7 months ago • 0 comments

The fixes in #1611 introduced a formatting issue.

Getting things to work properly will involve a conditional group.

The edge case to fix

class ClassName
{
    private SomeObject someObject = new SomeObject_____________________________________(
        () => new SomeObject()
    );
}

Formatting this on prettier with 80 width shows the conditional group

```c#
CallMethod(() => CallAnotherMethod_________________________________________1());
CallMethod(() => CallAnotherMethod_________________________________________12());

belav avatar May 24 '25 15:05 belav