dotnet/roslyn
Unexpected formatting when attribute is on same line as property with default value
开放
#50,017 创建于 2020年12月16日
Area-IDEBugIDE-Formatterhelp wanted
仓库指标
- 星标
- (20,414 个星标)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 256 个 PR)
描述
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