Skip to content

Commit b88705e

Browse files
authored
Unskip test for a fixed issue. (#46369)
Closes #44988
1 parent 1def11b commit b88705e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/Compilers/CSharp/Test/Semantic/Semantics/RecordTests.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17014,7 +17014,7 @@ record C;
1701417014
);
1701517015
}
1701617016

17017-
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/44988")]
17017+
[Fact]
1701817018
[WorkItem(44988, "https://github.com/dotnet/roslyn/issues/44988")]
1701917019
public void Equality_22()
1702017020
{
@@ -17028,6 +17028,18 @@ record C
1702817028
var comp = CreateCompilation(source, parseOptions: TestOptions.RegularPreview, options: TestOptions.ReleaseDll);
1702917029
comp.MakeMemberMissing(WellKnownMember.System_Collections_Generic_EqualityComparer_T__get_Default);
1703017030
comp.VerifyEmitDiagnostics(
17031+
// (2,1): error CS0656: Missing compiler required member 'System.Collections.Generic.EqualityComparer`1.get_Default'
17032+
// record C
17033+
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"record C
17034+
{
17035+
int x = 0;
17036+
}").WithArguments("System.Collections.Generic.EqualityComparer`1", "get_Default").WithLocation(2, 1),
17037+
// (2,1): error CS0656: Missing compiler required member 'System.Collections.Generic.EqualityComparer`1.get_Default'
17038+
// record C
17039+
Diagnostic(ErrorCode.ERR_MissingPredefinedMember, @"record C
17040+
{
17041+
int x = 0;
17042+
}").WithArguments("System.Collections.Generic.EqualityComparer`1", "get_Default").WithLocation(2, 1)
1703117043
);
1703217044
}
1703317045

0 commit comments

Comments
 (0)