9 references to ERR_FuncPtrRefMismatch
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Conversions.cs (1)
1418
TypeKind.FunctionPointer => ErrorCode.
ERR_FuncPtrRefMismatch
,
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
681
diagnostics.Add(delegateOrFunctionPointerType.IsFunctionPointer() ? ErrorCode.
ERR_FuncPtrRefMismatch
: ErrorCode.ERR_DelegateRefMismatch,
Errors\ErrorFacts.cs (1)
1974
case ErrorCode.
ERR_FuncPtrRefMismatch
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenFunctionPointersTests.cs (6)
3233
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "M5").WithArguments("C.M5()", "delegate*<object>").WithLocation(25, 36),
3236
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "M6").WithArguments("C.M6()", "delegate*<object>").WithLocation(26, 36),
3239
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "M6").WithArguments("C.M6()", "delegate*<ref object>").WithLocation(27, 40),
3242
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "M7").WithArguments("C.M7()", "delegate*<ref object>").WithLocation(28, 40),
3245
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "M5").WithArguments("C.M5()", "delegate*<ref readonly object>").WithLocation(29, 49),
3248
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "M7").WithArguments("C.M7()", "delegate*<ref readonly object>").WithLocation(30, 49)