-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
Consider the following code snippet:
class C
{
void M()
{
try
{
if(x){
G();
}
}
catch(Exception e) when (H(e))
{
}
}
}If this is passed to the Formatter API it will output the following:
class C
{
void M()
{
try
{
if (x)
{
G();
}
}
catch (Exception e) when(H(e))
{
}
}
}This output has the following bugs:
- The last two
}braces are not correctly indented - There should be a space between
whenand(. The current behavior is inconsistent with how we format other similar operators.
Reactions are currently unavailable