42 references to ERR_PartialWrongConstraints
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
769
case ErrorCode.
ERR_PartialWrongConstraints
:
Symbols\Source\SourceNamedTypeSymbol.cs (1)
530
diagnostics.Add(ErrorCode.
ERR_PartialWrongConstraints
, Locations[0], this, typeParameters[i]);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\NullableReferenceTypesTests.cs (19)
99481
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<TF1>", "TF1").WithLocation(3, 19)
99506
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<TF1>", "TF1").WithLocation(3, 19)
99555
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<TF1>", "TF1").WithLocation(3, 19)
99606
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<TF1>", "TF1").WithLocation(3, 19)
99633
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<TF1>", "TF1").WithLocation(3, 19)
99685
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<TF1>", "TF1").WithLocation(3, 19)
107397
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "B").WithArguments("B<T>", "T").WithLocation(2, 15));
133476
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(2, 15)
133502
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(2, 15)
133529
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(3, 15)
133554
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(3, 15)
133716
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(12, 15)
133757
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(12, 15)
133796
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(12, 15)
133835
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C").WithArguments("C<T>", "T").WithLocation(12, 15)
133884
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I1").WithArguments("I1<T>", "T").WithLocation(8, 19),
133887
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I2").WithArguments("I2<T>", "T").WithLocation(14, 19),
133890
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I3").WithArguments("I3<T>", "T").WithLocation(20, 19),
133893
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "I4").WithArguments("I4<T>", "T").WithLocation(26, 19)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (21)
Symbols\GenericConstraintTests.cs (4)
2087
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "B").WithArguments("B<T, U>", "T").WithLocation(7, 15),
2142
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "D").WithArguments("D<T>", "T").WithLocation(7, 15),
2151
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "E").WithArguments("E<T>", "T").WithLocation(10, 15),
2173
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "B").WithArguments("B<T, U>", "U").WithLocation(2, 15),
Symbols\SymbolErrorTests.cs (17)
3796
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "A1").WithArguments("A1<T>", "T").WithLocation(4, 15),
3798
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "A2").WithArguments("A2<T, U>", "T").WithLocation(6, 15),
3800
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "A2").WithArguments("A2<T, U>", "U").WithLocation(6, 15),
3802
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "A3").WithArguments("A3<T>", "T").WithLocation(8, 15),
3804
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "A4").WithArguments("A4<T>", "T").WithLocation(10, 19),
3806
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "A5").WithArguments("A5<T>", "T").WithLocation(12, 16),
3808
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "B1").WithArguments("B1<T>", "T").WithLocation(16, 15),
3810
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "B2").WithArguments("B2<T, U>", "T").WithLocation(18, 15),
3812
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C1").WithArguments("C1<T>", "T").WithLocation(21, 19),
3814
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "C2").WithArguments("C2<T, U>", "U").WithLocation(23, 16),
3816
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "E1").WithArguments("E1<T, U>", "T").WithLocation(32, 15),
3818
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "E1").WithArguments("E1<T, U>", "U").WithLocation(32, 15),
3820
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "E2").WithArguments("E2<T, U>", "T").WithLocation(35, 15),
3822
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "E2").WithArguments("E2<T, U>", "U").WithLocation(35, 15),
3824
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "F2").WithArguments("F2<T, U>", "U").WithLocation(43, 15),
3826
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "G2").WithArguments("G2<T, U>", "U").WithLocation(48, 16));
3856
Diagnostic(ErrorCode.
ERR_PartialWrongConstraints
, "B3").WithArguments("N.B3<T>", "T").WithLocation(19, 19),