54 references to ERR_UnifyingInterfaceInstantiations
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
987
case ErrorCode.
ERR_UnifyingInterfaceInstantiations
:
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1728
diagnostics.Add(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, this.Locations[0], this, interface1, interface2);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenTupleTest.cs (7)
20355
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T, U>", "I0<(int a, int b)>", "I0<(T a, U b)>").WithLocation(6, 14),
20358
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C5").WithArguments("C5<T, U>", "I0<(int a, int b)>", "I0<(T notA, U notB)>").WithLocation(7, 14)
20749
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I1<(T a, T b)>", "I1<(U c, U d)>").WithLocation(7, 14)
21109
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T2>", "I0<(int a, int b)>", "I0<(T2 a, T2 b)>").WithLocation(6, 14),
21112
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T2>", "I0<(int, int)>", "I0<(T2, T2)>").WithLocation(3, 14),
21115
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T2>", "I0<(int a, int b)>", "I0<(T2, T2)>").WithLocation(5, 14),
21118
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T2>", "I0<(int, int)>", "I0<(T2, T2)>").WithLocation(4, 14)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (31)
Semantics\NativeIntegerTests.cs (9)
14628
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T>", "I<nint>", "I<T>").WithLocation(2, 7),
14631
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T>", "I<(nint, T)>", "I<(T, System.IntPtr)>").WithLocation(3, 7),
14634
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T>", "I<(T, T)>", "I<(System.UIntPtr, nuint)>").WithLocation(4, 7));
14653
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T>", "IA<T>", "IA<nint>").WithLocation(4, 7),
14656
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T>", "IA<(nint, T)>", "IA<(T, System.IntPtr)>").WithLocation(5, 7),
14659
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T>", "IA<(T, T)>", "IA<(System.UIntPtr, nuint)>").WithLocation(6, 7));
14682
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T>", "IA<T>", "IA<nint>").WithLocation(4, 15),
14685
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T>", "IA<(nint, T)>", "IA<(T, System.IntPtr)>").WithLocation(6, 15),
14688
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T>", "IA<(T, T)>", "IA<(System.UIntPtr, nuint)>").WithLocation(8, 15));
Semantics\NullableReferenceTypesTests.cs (21)
17310
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I1<T>", "I1<U?>").WithLocation(7, 14)
107425
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").WithLocation(2, 7),
107428
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").WithLocation(5, 7),
107431
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").WithLocation(3, 7),
107434
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").WithLocation(4, 7)
107451
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").WithLocation(2, 7),
107454
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").WithLocation(3, 7),
107460
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").WithLocation(4, 7),
107463
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").WithLocation(5, 7),
107483
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").WithLocation(2, 7),
107486
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").WithLocation(3, 7),
107492
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").WithLocation(4, 7),
107495
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").WithLocation(5, 7),
107516
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").WithLocation(2, 7),
107519
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").WithLocation(3, 7),
107522
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").WithLocation(4, 7),
107525
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").WithLocation(5, 7));
107541
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").WithLocation(2, 7),
107544
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").WithLocation(3, 7),
107547
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").WithLocation(4, 7),
107550
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").WithLocation(5, 7));
Semantics\RecordTests.cs (1)
24600
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "B").WithArguments("A<T>.B<U>", "System.IEquatable<A<T>.B<T>>", "System.IEquatable<A<T>.B<U>>").WithLocation(4, 12));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Symbols\CustomModifiersTests.cs (8)
1569
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "ITest3").WithArguments("ITest3<T, U>", "ITest0<T>", "ITest0<U>").WithLocation(2, 11),
1572
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "ITest4").WithArguments("ITest4<T, U>", "ITest0<T>", "ITest0<U>").WithLocation(6, 11)
1608
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "ITest3").WithArguments("ITest3<T, U>", "ITest0<T>", "ITest0<U>").WithLocation(2, 11),
1611
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "ITest4").WithArguments("ITest4<T, U>", "ITest0<T>", "ITest0<U>").WithLocation(6, 11)
1679
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "ITest3").WithArguments("ITest3<T, U>", "ITest0<T>", "ITest0<U>").WithLocation(2, 11),
1682
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "ITest4").WithArguments("ITest4<T, U>", "ITest0<T>", "ITest0<U>").WithLocation(6, 11)
1721
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "ITest3").WithArguments("ITest3<T, U>", "ITest0<T>", "ITest0<U>").WithLocation(2, 11),
1724
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "ITest4").WithArguments("ITest4<T, U>", "ITest0<T>", "ITest0<U>").WithLocation(6, 11)
Symbols\SymbolErrorTests.cs (5)
12683
new ErrorDescription { Code = (int)ErrorCode.
ERR_UnifyingInterfaceInstantiations
, Line = 3, Column = 7 },
12684
new ErrorDescription { Code = (int)ErrorCode.
ERR_UnifyingInterfaceInstantiations
, Line = 5, Column = 7 },
12685
new ErrorDescription { Code = (int)ErrorCode.
ERR_UnifyingInterfaceInstantiations
, Line = 11, Column = 7 },
12686
new ErrorDescription { Code = (int)ErrorCode.
ERR_UnifyingInterfaceInstantiations
, Line = 15, Column = 7 });
12699
new ErrorDescription { Code = (int)ErrorCode.
ERR_UnifyingInterfaceInstantiations
, Line = 4, Column = 7 });
Symbols\TypeUnificationTests.cs (1)
421
new ErrorDescription { Code = (int)ErrorCode.
ERR_UnifyingInterfaceInstantiations
, Line = 4, Column = 11 });