42 references to ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2175
or ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
Symbols\ConstraintsHelper.cs (1)
1096
new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, iface, member))));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\AttributeTests.cs (4)
11107
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "I1").WithArguments("I1", "I1.M()").WithLocation(18, 8),
11110
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "I1").WithArguments("I1", "I1.M()").WithLocation(19, 8),
11113
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "I2").WithArguments("I2", "I1.M()").WithLocation(22, 8),
11116
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "I2").WithArguments("I2", "I1.M()").WithLocation(23, 8)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (36)
Symbols\StaticAbstractMembersInInterfacesTests.cs (36)
6329
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "x").WithArguments("I2", "I1.M01()").WithLocation(4, 22),
6332
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I2>").WithArguments("I2", "I1.M01()").WithLocation(15, 11),
6335
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "x").WithArguments("I2", "I1.M01()").WithLocation(21, 22),
6338
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(21, 32),
6341
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I2>").WithArguments("I2", "I1.M01()").WithLocation(32, 11),
6344
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(33, 11),
6347
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(39, 22),
6350
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(50, 11),
6353
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I1", "I1.M01()").WithLocation(56, 22),
6356
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I1>").WithArguments("I1", "I1.M01()").WithLocation(67, 11)
6463
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "C6").WithArguments("I1", "I1.M01()").WithLocation(43, 7)
6481
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "C6").WithArguments("I1", "I1.M01()").WithLocation(43, 7)
6588
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I1", "I1.M01()").WithLocation(56, 22),
6591
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I1>").WithArguments("I1", "I1.M01()").WithLocation(67, 11)
6706
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "x").WithArguments("I2", "I1.M01()").WithLocation(4, 22),
6709
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I2>").WithArguments("I2", "I1.M01()").WithLocation(15, 11),
6712
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "x").WithArguments("I2", "I1.M01()").WithLocation(21, 22),
6715
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(21, 32),
6718
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I2>").WithArguments("I2", "I1.M01()").WithLocation(32, 11),
6721
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(33, 11),
6724
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(39, 22),
6727
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(50, 11)
6847
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(21, 32),
6850
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(33, 11),
6853
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(39, 22),
6856
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(50, 11)
6976
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(21, 32),
6979
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(33, 11),
6982
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(39, 22),
6985
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(50, 11)
7029
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "D").WithArguments("I", "I.P").WithLocation(11, 7)
9533
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "x").WithArguments("I1", "I1.operator true(I1)").WithLocation(7, 34),
9536
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I1", "I1.operator true(I1)").WithLocation(12, 27),
9539
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "a").WithArguments("I1", "I1.operator true(I1)").WithLocation(20, 34),
10397
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature or (int)ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
)).Verify(
30596
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
).Verify(