54 references to ERR_UnifyingInterfaceInstantiations
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1049
or ErrorCode.
ERR_UnifyingInterfaceInstantiations
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1791
diagnostics.Add(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, this.GetFirstLocation(), this, interface1, interface2);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
CodeGen\CodeGenTupleTest.cs (7)
20349
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T, U>", "I0<(int a, int b)>", "I0<(T a, U b)>").WithLocation(6, 14),
20352
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C5").WithArguments("C5<T, U>", "I0<(int a, int b)>", "I0<(T notA, U notB)>").WithLocation(7, 14)
20747
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I1<(T a, T b)>", "I1<(U c, U d)>").WithLocation(7, 14)
21107
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T2>", "I0<(int a, int b)>", "I0<(T2 a, T2 b)>").WithLocation(6, 14),
21110
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T2>", "I0<(int, int)>", "I0<(T2, T2)>").WithLocation(3, 14),
21113
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T2>", "I0<(int a, int b)>", "I0<(T2, T2)>").WithLocation(5, 14),
21116
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T2>", "I0<(int, int)>", "I0<(T2, T2)>").WithLocation(4, 14)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\RecordTests.cs (1)
24694
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.Semantic.UnitTests (30)
Semantics\NativeIntegerTests.cs (9)
14659
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T>", "I<nint>", "I<T>").WithLocation(2, 7),
14662
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T>", "I<(nint, T)>", "I<(T, System.IntPtr)>").WithLocation(3, 7),
14665
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T>", "I<(T, T)>", "I<(System.UIntPtr, nuint)>").WithLocation(4, 7));
14684
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T>", "IA<T>", "IA<nint>").WithLocation(4, 7),
14687
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T>", "IA<(nint, T)>", "IA<(T, System.IntPtr)>").WithLocation(5, 7),
14690
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T>", "IA<(T, T)>", "IA<(System.UIntPtr, nuint)>").WithLocation(6, 7));
14713
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T>", "IA<T>", "IA<nint>").WithLocation(4, 15),
14716
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T>", "IA<(nint, T)>", "IA<(T, System.IntPtr)>").WithLocation(6, 15),
14719
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T>", "IA<(T, T)>", "IA<(System.UIntPtr, nuint)>").WithLocation(8, 15));
Semantics\NullableReferenceTypesTests.cs (21)
17349
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I1<T>", "I1<U?>").WithLocation(7, 14)
111195
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").WithLocation(2, 7),
111198
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").WithLocation(5, 7),
111201
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").WithLocation(3, 7),
111204
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").WithLocation(4, 7)
111221
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").WithLocation(2, 7),
111224
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").WithLocation(3, 7),
111230
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").WithLocation(4, 7),
111233
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").WithLocation(5, 7),
111253
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").WithLocation(2, 7),
111256
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").WithLocation(3, 7),
111262
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").WithLocation(4, 7),
111265
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").WithLocation(5, 7),
111286
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").WithLocation(2, 7),
111289
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").WithLocation(3, 7),
111292
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").WithLocation(4, 7),
111295
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").WithLocation(5, 7));
111311
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C1").WithArguments("C1<T, U>", "I<T>", "I<U>").WithLocation(2, 7),
111314
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C2").WithArguments("C2<T, U>", "I<T>", "I<U?>").WithLocation(3, 7),
111317
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C3").WithArguments("C3<T, U>", "I<T?>", "I<U>").WithLocation(4, 7),
111320
Diagnostic(ErrorCode.
ERR_UnifyingInterfaceInstantiations
, "C4").WithArguments("C4<T, U>", "I<T?>", "I<U?>").WithLocation(5, 7));
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)
12831
new ErrorDescription { Code = (int)ErrorCode.
ERR_UnifyingInterfaceInstantiations
, Line = 3, Column = 7 },
12832
new ErrorDescription { Code = (int)ErrorCode.
ERR_UnifyingInterfaceInstantiations
, Line = 5, Column = 7 },
12833
new ErrorDescription { Code = (int)ErrorCode.
ERR_UnifyingInterfaceInstantiations
, Line = 11, Column = 7 },
12834
new ErrorDescription { Code = (int)ErrorCode.
ERR_UnifyingInterfaceInstantiations
, Line = 15, Column = 7 });
12847
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 });