未验证 提交 b88705ef 编写于 作者: A AlekseyTs 提交者: GitHub

Unskip test for a fixed issue. (#46369)

Closes #44988
上级 1def11b2
......@@ -17014,7 +17014,7 @@ public void Equality_21()
);
}
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/44988")]
[Fact]
[WorkItem(44988, "https://github.com/dotnet/roslyn/issues/44988")]
public void Equality_22()
{
......@@ -17028,6 +17028,18 @@ record C
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseDll);
comp.MakeMemberMissing(WellKnownMember.System_Collections_Generic_EqualityComparer_T__get_Default);
comp.VerifyEmitDiagnostics(
// (2,1): error CS0656: Missing compiler required member 'System.Collections.Generic.EqualityComparer`1.get_Default'
// record C
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"record C
{
int x = 0;
}").WithArguments("System.Collections.Generic.EqualityComparer`1", "get_Default").WithLocation(2, 1),
// (2,1): error CS0656: Missing compiler required member 'System.Collections.Generic.EqualityComparer`1.get_Default'
// record C
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"record C
{
int x = 0;
}").WithArguments("System.Collections.Generic.EqualityComparer`1", "get_Default").WithLocation(2, 1)
);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册