Closed NonSpicyBurrito closed 5 months ago
Also running into a nasty related case when there are chained method calls in the switch branch:
Input:
void Fn()
{
return x switch
{
(true, true) => foobar.MethodCall1().MethodCall2().MethodCall3(),
// ...
};
}
Output:
void Fn()
{
return x switch
{
(true, true)
=> foobar
.MethodCall1()
.MethodCall2()
.MethodCall3(),
// ...
};
}
Expected:
void Fn()
{
return x switch
{
(true, true) =>
foobar.MethodCall1()
.MethodCall2()
.MethodCall3(),
// ...
};
}
@domn1995 do you mind creating a new issue for that? Thanks!
Input:
Output:
Output (formatting the previous output again):
Expected behavior: No excess empty line is created above the last branch.