14 references to ERR_CannotUseManagedTypeInUnmanagedCallersOnly
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2092
case ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
980
diagnostics.Add(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, syntax.Location, type, (isParam ? MessageID.IDS_Parameter : MessageID.IDS_Return).Localize());
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenFunctionPointersTests.cs (12)
8114
Diagnostic(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, "string").WithArguments("string", "return").WithLocation(6, 12),
8117
Diagnostic(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, "object o").WithArguments("object", "parameter").WithLocation(9, 20),
8123
Diagnostic(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, "T").WithArguments("T", "return").WithLocation(12, 12),
8129
Diagnostic(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, "T t").WithArguments("T", "parameter").WithLocation(15, 23),
8135
Diagnostic(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, "T").WithArguments("T", "return").WithLocation(18, 12),
8141
Diagnostic(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, "T t").WithArguments("T", "parameter").WithLocation(21, 23),
8533
Diagnostic(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, "S<object>").WithArguments("S<object>", "return").WithLocation(10, 12),
8536
Diagnostic(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, "S<object> o").WithArguments("S<object>", "parameter").WithLocation(13, 20),
8539
Diagnostic(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, "S<S<object>>").WithArguments("S<S<object>>", "return").WithLocation(16, 12),
8542
Diagnostic(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, "S<S<object>> o").WithArguments("S<S<object>>", "parameter").WithLocation(19, 20)
9760
Diagnostic(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, "Task").WithArguments("System.Threading.Tasks.Task", "return").WithLocation(11, 25),
9790
Diagnostic(ErrorCode.
ERR_CannotUseManagedTypeInUnmanagedCallersOnly
, "Task").WithArguments("System.Threading.Tasks.Task", "return").WithLocation(11, 25),