32 references to ERR_ExplicitInterfaceMemberTypeMismatch
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2539
or ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
325
: ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\BindingTests.cs (2)
1664
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Moniker").WithArguments("BarImpl.Moniker", "Nullable<ImageMoniker>?", "IBar.Moniker").WithLocation(4, 24),
1675
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Moniker").WithArguments("BarImpl.Moniker", "Nullable<ImageMoniker>", "IBar.Moniker").WithLocation(4, 24),
Semantics\InheritanceBindingTests.cs (9)
7030
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Property").WithArguments("Class41.Property", "int", "Interface3.Property"),
7441
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Property").WithArguments("Outer<T>.Inner<U>.Derived4.Derived5.Derived7<u>.Property", "System.Collections.Generic.List<T>", "Outer<System.Collections.Generic.List<T>>.Inner<U>.Interface<System.Collections.Generic.List<U>, T>.Property"),
7473
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Property").WithArguments("Outer<T>.Inner<U>.Derived3.Property", "T", "Outer<T>.Inner<U>.Interface<long, string>.Property"),
7730
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Property").WithArguments("Outer<T>.Inner<U>.Derived4.Property", "T", "Outer<T>.Inner<U>.Interface<T, U>.Property"),
7746
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Property").WithArguments("Outer<T>.Inner<U>.Derived1.Derived2<X, Y>.Property", "T", "Outer<T>.Inner<int>.Interface<long, Y>.Property"),
9862
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M2").WithArguments("C1.M2", "int", "I1.M2").WithLocation(12, 19),
9865
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M3").WithArguments("C1.M3", "System.Action", "I1.M3").WithLocation(13, 40)
9908
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M2").WithArguments("C1.M2", "int?", "I1.M2").WithLocation(13, 19),
9911
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M3").WithArguments("C1.M3", "System.Action?", "I1.M3").WithLocation(14, 40)
Semantics\UseSiteErrorTests.cs (9)
478
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Get1").WithArguments("C.Get1", "UnavailableClass", "CSharpErrors.InterfaceProperties.Get1").WithLocation(4, 55),
484
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Get2").WithArguments("C.Get2", "UnavailableClass[]", "CSharpErrors.InterfaceProperties.Get2").WithLocation(5, 57),
490
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Set1").WithArguments("C.Set1", "UnavailableClass", "CSharpErrors.InterfaceProperties.Set1").WithLocation(7, 55),
496
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Set2").WithArguments("C.Set2", "UnavailableClass[]", "CSharpErrors.InterfaceProperties.Set2").WithLocation(8, 57),
502
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "GetSet1").WithArguments("C.GetSet1", "UnavailableClass", "CSharpErrors.InterfaceProperties.GetSet1").WithLocation(10, 55),
508
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "GetSet2").WithArguments("C.GetSet2", "UnavailableClass[]", "CSharpErrors.InterfaceProperties.GetSet2").WithLocation(11, 57),
836
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Event1").WithArguments("C.Event1", "UnavailableDelegate", "CSharpErrors.InterfaceEvents.Event1").WithLocation(4, 60),
842
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Event2").WithArguments("C.Event2", "CSharpErrors.EventDelegate<UnavailableClass>", "CSharpErrors.InterfaceEvents.Event2").WithLocation(5, 85),
848
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "Event3").WithArguments("C.Event3", "CSharpErrors.EventDelegate<UnavailableClass[]>", "CSharpErrors.InterfaceEvents.Event3").WithLocation(6, 87),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Symbols\CovariantReturnTests.cs (4)
2161
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M1").WithArguments("Derived.M1", "object", "Base.M1").WithLocation(9, 17),
2167
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M1").WithArguments("C.M1", "object", "Base.M1").WithLocation(14, 17),
2176
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M1").WithArguments("Derived.M1", "object", "Base.M1").WithLocation(9, 17),
2182
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M1").WithArguments("C.M1", "object", "Base.M1").WithLocation(14, 17),
Symbols\StaticAbstractMembersInInterfacesTests.cs (6)
22944
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M01").WithArguments("C6.M01", "int", "I1.M01").WithLocation(38, 20)
23006
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M01").WithArguments("C6.M01", "int", "I1.M01").WithLocation(38, 20)
23086
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M01").WithArguments("C6.M01", "int", "I1.M01").WithLocation(38, 13)
25723
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M01").WithArguments("C6.M01", "System.Action", "I1.M01").WithLocation(38, 40)
25785
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M01").WithArguments("C6.M01", "System.Action", "I1.M01").WithLocation(38, 40)
25865
Diagnostic(ErrorCode.
ERR_ExplicitInterfaceMemberTypeMismatch
, "M01").WithArguments("C6.M01", "System.Action", "I1.M01").WithLocation(38, 33)