28 references to ERR_PartialMethodInconsistentConstraints
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1100
or ErrorCode.
ERR_PartialMethodInconsistentConstraints
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
622
diagnostics.Add(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, implementation.GetFirstLocation(), implementation, typeParameter2.Name);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
RefStructInterfacesTests.cs (4)
5286
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "M").WithArguments("C.M<T>()", "T").WithLocation(9, 18)
5315
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "M").WithArguments("C.M<T>()", "T").WithLocation(9, 18)
5344
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "M").WithArguments("C.M<T>()", "T").WithLocation(9, 18)
5373
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "M").WithArguments("C.M<T>()", "T").WithLocation(9, 18)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (22)
Symbols\DefaultInterfaceImplementationTests.cs (1)
11624
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "M1").WithArguments("I1.M1<T>()", "T").WithLocation(5, 25),
Symbols\ExtendedPartialMethodsTests.cs (2)
3373
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "M1").WithArguments("C.M1<U>()", "U").WithLocation(5, 22),
3376
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "M2").WithArguments("C.M2<U>()", "U").WithLocation(8, 22));
Symbols\SymbolErrorTests.cs (19)
14403
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "A2").WithArguments("C<X>.A2<T, U>()", "U").WithLocation(39, 18),
14406
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "A3").WithArguments("C<X>.A3<T>()", "T").WithLocation(40, 18),
14409
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "A4").WithArguments("C<X>.A4<T, U>()", "T").WithLocation(41, 18),
14412
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "B1").WithArguments("C<X>.B1<T>()", "T").WithLocation(43, 18),
14415
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "B2").WithArguments("C<X>.B2<T>()", "T").WithLocation(44, 18),
14418
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "B3").WithArguments("C<X>.B3<T, U>()", "T").WithLocation(45, 18),
14421
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "C1").WithArguments("C<X>.C1<T>()", "T").WithLocation(47, 18),
14424
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "C2").WithArguments("C<X>.C2<T>()", "T").WithLocation(48, 18),
14427
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "C3").WithArguments("C<X>.C3<T, U>()", "U").WithLocation(49, 18),
14430
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "E1").WithArguments("C<X>.E1<T, U>()", "T").WithLocation(22, 18),
14433
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "E1").WithArguments("C<X>.E1<T, U>()", "U").WithLocation(22, 18),
14436
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "F1").WithArguments("C<X>.F1<T, U>()", "U").WithLocation(24, 18),
14439
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "G1").WithArguments("C<X>.G1<T, U>()", "U").WithLocation(26, 18),
14442
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "H2").WithArguments("C<X>.H2<T, U>()", "T").WithLocation(29, 18),
14445
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "H2").WithArguments("C<X>.H2<T, U>()", "U").WithLocation(29, 18),
14448
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "K1").WithArguments("C<X>.K1<T, U>()", "T").WithLocation(32, 18),
14451
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "K1").WithArguments("C<X>.K1<T, U>()", "U").WithLocation(32, 18),
14460
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "A1").WithArguments("C<X>.A1<T>()", "T").WithLocation(38, 18));
14497
Diagnostic(ErrorCode.
ERR_PartialMethodInconsistentConstraints
, "M4").WithArguments("N.C.M4<T, U>()", "T").WithLocation(25, 22));