10 references to ERR_CannotUseRefInUnmanagedCallersOnly
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
2174
case ErrorCode.
ERR_CannotUseRefInUnmanagedCallersOnly
:
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
964
diagnostics.Add(ErrorCode.
ERR_CannotUseRefInUnmanagedCallersOnly
, syntax.Location);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenFunctionPointersTests.cs (8)
8178
Diagnostic(ErrorCode.
ERR_CannotUseRefInUnmanagedCallersOnly
, "ref int").WithLocation(6, 12),
8181
Diagnostic(ErrorCode.
ERR_CannotUseRefInUnmanagedCallersOnly
, "ref readonly int").WithLocation(9, 12),
8184
Diagnostic(ErrorCode.
ERR_CannotUseRefInUnmanagedCallersOnly
, "ref int o").WithLocation(12, 20),
8187
Diagnostic(ErrorCode.
ERR_CannotUseRefInUnmanagedCallersOnly
, "in int o").WithLocation(15, 20),
8190
Diagnostic(ErrorCode.
ERR_CannotUseRefInUnmanagedCallersOnly
, "out int o").WithLocation(18, 20)
9557
Diagnostic(ErrorCode.
ERR_CannotUseRefInUnmanagedCallersOnly
, "out int i1").WithLocation(18, 46),
9560
Diagnostic(ErrorCode.
ERR_CannotUseRefInUnmanagedCallersOnly
, "out int i2").WithLocation(18, 58)
9666
Diagnostic(ErrorCode.
ERR_CannotUseRefInUnmanagedCallersOnly
, "ref int").WithLocation(20, 19)