Skip to content

More Lambda Edgecases #1613

@belav

Description

@belav

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());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions