17 references to ERR_NotOverridableAPIInRecord
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2128
or ErrorCode.
ERR_NotOverridableAPIInRecord
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5380
diagnostics.Add(ErrorCode.
ERR_NotOverridableAPIInRecord
, symbol.GetFirstLocation(), symbol);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
Semantics\RecordTests.cs (14)
7475
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "PrintMembers").WithArguments("C2.PrintMembers(System.Text.StringBuilder)").WithLocation(5, 36)
7493
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").WithLocation(4, 20)
7612
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "PrintMembers").WithArguments("C1.PrintMembers(System.Text.StringBuilder)").WithLocation(5, 17),
18221
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "Equals").WithArguments("B.Equals(B)").WithLocation(9, 33),
18829
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "Equals").WithArguments("A.Equals(A)").WithLocation(4, 24),
18930
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "EqualityContract").WithArguments("B.EqualityContract").WithLocation(9, 43)
19337
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "EqualityContract").WithArguments("A.EqualityContract").WithLocation(4, 27),
19413
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "EqualityContract").WithArguments("B.EqualityContract").WithLocation(7, 27),
19446
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "EqualityContract").WithArguments("G.EqualityContract").WithLocation(37, 43)
20197
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "EqualityContract").WithArguments("A.EqualityContract").WithLocation(4, 34),
20717
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "Equals").WithArguments("A.Equals(A)").WithLocation(4, 24),
23695
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "EqualityContract").WithArguments("A.EqualityContract").WithLocation(3, 27),
23716
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "EqualityContract").WithArguments("B.EqualityContract").WithLocation(4, 43),
24654
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "Equals").WithArguments("A.Equals(A)").WithLocation(3, 17),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\RecordTests.cs (1)
232
Diagnostic(ErrorCode.
ERR_NotOverridableAPIInRecord
, "Equals").WithArguments("C.Equals(C)").WithLocation(4, 17),