12 references to ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder.cs (1)
810
? ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
Errors\ErrorFacts.cs (1)
2163
or ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
Errors\LazyUnmanagedCallersOnlyMethodCalledDiagnosticInfo.cs (1)
42
? ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenFunctionPointersTests.cs (5)
9492
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
, "M1").WithArguments("C.M1()").WithLocation(11, 20),
9495
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
, "local").WithArguments("local()").WithLocation(12, 13),
9498
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
, "M1").WithArguments("C.M1()").WithLocation(13, 24),
9501
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
, "local").WithArguments("local()").WithLocation(14, 24)
9528
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
, "M").WithArguments("C.M(int)").WithLocation(13, 25)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Attributes\AttributeTests.cs (3)
10232
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
, "F").WithArguments("C.F()").WithLocation(8, 35),
10242
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
, "F").WithArguments("C.F()").WithLocation(8, 35),
10245
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
, "F").WithArguments("C.F()").WithLocation(9, 28),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\DelegateTypeTests.cs (1)
4059
Diagnostic(ErrorCode.
ERR_UnmanagedCallersOnlyMethodsCannotBeConvertedToDelegate
, "F").WithArguments("Program.F()").WithLocation(8, 22));