42 references to ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2118
case ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
:
Symbols\ConstraintsHelper.cs (1)
991
new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, iface, member))));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Attributes\AttributeTests.cs (4)
10807
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "I1").WithArguments("I1", "I1.M()").WithLocation(18, 8),
10810
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "I1").WithArguments("I1", "I1.M()").WithLocation(19, 8),
10813
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "I2").WithArguments("I2", "I1.M()").WithLocation(22, 8),
10816
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "I2").WithArguments("I2", "I1.M()").WithLocation(23, 8)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (36)
Symbols\StaticAbstractMembersInInterfacesTests.cs (36)
6347
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "x").WithArguments("I2", "I1.M01()").WithLocation(4, 22),
6350
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I2>").WithArguments("I2", "I1.M01()").WithLocation(15, 11),
6353
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "x").WithArguments("I2", "I1.M01()").WithLocation(21, 22),
6356
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(21, 32),
6359
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I2>").WithArguments("I2", "I1.M01()").WithLocation(32, 11),
6362
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(33, 11),
6365
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(39, 22),
6368
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(50, 11),
6371
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I1", "I1.M01()").WithLocation(56, 22),
6374
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I1>").WithArguments("I1", "I1.M01()").WithLocation(67, 11)
6481
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "C6").WithArguments("I1", "I1.M01()").WithLocation(43, 7)
6499
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "C6").WithArguments("I1", "I1.M01()").WithLocation(43, 7)
6606
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I1", "I1.M01()").WithLocation(56, 22),
6609
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I1>").WithArguments("I1", "I1.M01()").WithLocation(67, 11)
6724
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "x").WithArguments("I2", "I1.M01()").WithLocation(4, 22),
6727
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I2>").WithArguments("I2", "I1.M01()").WithLocation(15, 11),
6730
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "x").WithArguments("I2", "I1.M01()").WithLocation(21, 22),
6733
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(21, 32),
6736
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I2>").WithArguments("I2", "I1.M01()").WithLocation(32, 11),
6739
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(33, 11),
6742
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(39, 22),
6745
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(50, 11)
6865
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(21, 32),
6868
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(33, 11),
6871
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(39, 22),
6874
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(50, 11)
6994
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(21, 32),
6997
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(33, 11),
7000
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I3", "I1.M01()").WithLocation(39, 22),
7003
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "M<I3>").WithArguments("I3", "I1.M01()").WithLocation(50, 11)
7047
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "D").WithArguments("I", "I.P").WithLocation(11, 7)
9551
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "x").WithArguments("I1", "I1.operator true(I1)").WithLocation(7, 34),
9554
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "y").WithArguments("I1", "I1.operator true(I1)").WithLocation(12, 27),
9557
Diagnostic(ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
, "a").WithArguments("I1", "I1.operator true(I1)").WithLocation(20, 34),
10415
compilation1.GetDiagnostics().Where(d => d.Code is not ((int)ErrorCode.ERR_BadAbstractEqualityOperatorSignature or (int)ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
)).Verify(
30082
compilation1.GetDiagnostics().Where(d => d.Code is not (int)ErrorCode.
ERR_GenericConstraintNotSatisfiedInterfaceWithStaticAbstractMembers
).Verify(