提交 2d900a63 编写于 作者: J jnm2

Confirm that 'Add DebuggerDisplay' shows for records

上级 aee52aed
......@@ -38,6 +38,23 @@ private string GetDebuggerDisplay()
}");
}
[Fact]
public async Task OfferedOnEmptyRecord()
{
await TestInRegularAndScriptAsync(@"
[||]record C;", @"
using System.Diagnostics;
[DebuggerDisplay(""{"" + nameof(GetDebuggerDisplay) + ""(),nq}"")]
record C
{
private string GetDebuggerDisplay()
{
return ToString();
}
}");
}
[Fact]
public async Task OfferedOnEmptyStruct()
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册