10 references to ERR_FuncPtrRefMismatch
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Conversions.cs (1)
2965
TypeKind.FunctionPointer => ErrorCode.
ERR_FuncPtrRefMismatch
,
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
720
diagnostics.Add(delegateOrFunctionPointerType.IsFunctionPointer() ? ErrorCode.
ERR_FuncPtrRefMismatch
: ErrorCode.ERR_DelegateRefMismatch,
Errors\ErrorFacts.cs (1)
2031
or ErrorCode.
ERR_FuncPtrRefMismatch
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenFunctionPointersTests.cs (6)
3241
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "M5").WithArguments("C.M5()", "delegate*<object>").WithLocation(25, 36),
3244
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "M6").WithArguments("C.M6()", "delegate*<object>").WithLocation(26, 36),
3247
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "M6").WithArguments("C.M6()", "delegate*<ref object>").WithLocation(27, 40),
3250
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "M7").WithArguments("C.M7()", "delegate*<ref object>").WithLocation(28, 40),
3253
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "M5").WithArguments("C.M5()", "delegate*<ref readonly object>").WithLocation(29, 49),
3256
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "M7").WithArguments("C.M7()", "delegate*<ref readonly object>").WithLocation(30, 49)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\ExtensionTests2.cs (1)
36166
Diagnostic(ErrorCode.
ERR_FuncPtrRefMismatch
, "object.M").WithArguments("E.extension(object).M()", "delegate*<ref int>").WithLocation(5, 29));