44 references to ERR_PartialWrongConstraints
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
830
or ErrorCode.
ERR_PartialWrongConstraints
Symbols\Source\SourceNamedTypeSymbol.cs (1)
530
diagnostics.Add(ErrorCode.
ERR_PartialWrongConstraints
, GetFirstLocation(), this, typeParameters[i]);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
RefStructInterfacesTests.cs (2)
5207
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(2, 15)
5232
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(2, 15)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\NullableReferenceTypesTests.cs (19)
103251
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<TF1>", "TF1").WithLocation(3, 19)
103276
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<TF1>", "TF1").WithLocation(3, 19)
103325
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<TF1>", "TF1").WithLocation(3, 19)
103376
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<TF1>", "TF1").WithLocation(3, 19)
103403
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<TF1>", "TF1").WithLocation(3, 19)
103455
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<TF1>", "TF1").WithLocation(3, 19)
111167
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "B").WithArguments("B<T>", "T").WithLocation(2, 15));
137246
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(2, 15)
137272
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(2, 15)
137299
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(3, 15)
137324
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(3, 15)
137486
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(12, 15)
137527
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(12, 15)
137566
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(12, 15)
137605
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(12, 15)
137654
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<T>", "T").WithLocation(8, 19),
137657
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I2").WithArguments("I2<T>", "T").WithLocation(14, 19),
137660
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I3").WithArguments("I3<T>", "T").WithLocation(20, 19),
137663
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I4").WithArguments("I4<T>", "T").WithLocation(26, 19)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Symbols\GenericConstraintTests.cs (4)
2089
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "B").WithArguments("B<T, U>", "T").WithLocation(7, 15),
2144
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "D").WithArguments("D<T>", "T").WithLocation(7, 15),
2153
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "E").WithArguments("E<T>", "T").WithLocation(10, 15),
2175
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "B").WithArguments("B<T, U>", "U").WithLocation(2, 15),
Symbols\SymbolErrorTests.cs (17)
3857
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "A1").WithArguments("A1<T>", "T").WithLocation(4, 15),
3859
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "A2").WithArguments("A2<T, U>", "T").WithLocation(6, 15),
3861
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "A2").WithArguments("A2<T, U>", "U").WithLocation(6, 15),
3863
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "A3").WithArguments("A3<T>", "T").WithLocation(8, 15),
3865
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "A4").WithArguments("A4<T>", "T").WithLocation(10, 19),
3867
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "A5").WithArguments("A5<T>", "T").WithLocation(12, 16),
3869
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "B1").WithArguments("B1<T>", "T").WithLocation(16, 15),
3871
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "B2").WithArguments("B2<T, U>", "T").WithLocation(18, 15),
3873
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C1").WithArguments("C1<T>", "T").WithLocation(21, 19),
3875
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C2").WithArguments("C2<T, U>", "U").WithLocation(23, 16),
3877
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "E1").WithArguments("E1<T, U>", "T").WithLocation(32, 15),
3879
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "E1").WithArguments("E1<T, U>", "U").WithLocation(32, 15),
3881
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "E2").WithArguments("E2<T, U>", "T").WithLocation(35, 15),
3883
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "E2").WithArguments("E2<T, U>", "U").WithLocation(35, 15),
3885
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "F2").WithArguments("F2<T, U>", "U").WithLocation(43, 15),
3887
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "G2").WithArguments("G2<T, U>", "U").WithLocation(48, 16));
3917
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "B3").WithArguments("N.B3<T>", "T").WithLocation(19, 19),