16 references to ERR_DelegateRefMismatch
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Conversions.cs (1)
1417
TypeKind.Delegate => ErrorCode.
ERR_DelegateRefMismatch
,
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
681
diagnostics.Add(delegateOrFunctionPointerType.IsFunctionPointer() ? ErrorCode.ERR_FuncPtrRefMismatch : ErrorCode.
ERR_DelegateRefMismatch
,
Errors\ErrorFacts.cs (1)
1747
case ErrorCode.
ERR_DelegateRefMismatch
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenRefReturnTests.cs (8)
2828
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "o.F").WithArguments("A<int>.F()", "D<int>").WithLocation(24, 13),
2831
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "o.F").WithArguments("A<int>.F()", "D<int>").WithLocation(26, 24)
2836
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "o.F").WithArguments("A<int>.F()", "D<int>").WithLocation(24, 13),
2839
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "o.F").WithArguments("A<int>.F()", "D<int>").WithLocation(26, 24)
2880
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "o.F").WithArguments("A<int>.F()", "D<int>").WithLocation(23, 13),
2883
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "o.F").WithArguments("A<int>.F()", "D<int>").WithLocation(25, 24)
2888
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "o.F").WithArguments("A<int>.F()", "D<int>").WithLocation(23, 13),
2891
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "o.F").WithArguments("A<int>.F()", "D<int>").WithLocation(25, 24)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\BindingTests.cs (4)
2409
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "M").WithArguments("C.M()", "D").WithLocation(15, 15)
2414
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "M").WithArguments("C.M()", "D").WithLocation(15, 15)
2476
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "M").WithArguments("C.M()", "D").WithLocation(19, 11)
2481
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "M").WithArguments("C.M()", "D").WithLocation(19, 11)
Semantics\OverloadResolutionTests.cs (1)
11232
Diagnostic(ErrorCode.
ERR_DelegateRefMismatch
, "F").WithArguments("Program.F(in System.DateTime)", "Program.D").WithLocation(16, 15)