dotnet/roslyn
Unexpected formatting when attribute is on same line as property with default value
オープン
#50,017 opened on 2020/12/16
Area-IDEBugIDE-Formatterhelp wanted
Repository metrics
- Stars
- (20,414 個のスター)
- PR merge metrics
- (平均マージ 6d 17h) (30d で 256 merged PRs)
説明
The code
namespace Foo
{
public class Bar
{
[Parameter] public DelegateType Value { get; set; } = (value, second) => (builder) =>
{
builder.Baz();
};
}
}
reformats to
namespace Foo
{
public class Bar
{
[Parameter]
public DelegateType Value { get; set; } = (value, second) => (builder) =>
{
builder.Baz();
};
}
}
I would expect
namespace Foo
{
public class Bar
{
[Parameter]
public DelegateType Value { get; set; } = (value, second) => (builder) =>
{
builder.Baz();
};
}
}
or actually to do nothing at all.
dotnet format version is 4.1.131201