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