11 references to ERR_BadSpecialByRefParameter
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1554
or ErrorCode.
ERR_BadSpecialByRefParameter
Symbols\Source\SourceMethodSymbol.cs (1)
82
diagnostics.Add(ErrorCode.
ERR_BadSpecialByRefParameter
, getLocation(parameter, location, isExtensionParameter), parameter.Type);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
RefStructInterfacesTests.cs (2)
22099
Diagnostic(ErrorCode.
ERR_BadSpecialByRefParameter
, "x").WithArguments("T").WithLocation(6, 34),
22102
Diagnostic(ErrorCode.
ERR_BadSpecialByRefParameter
, "y").WithArguments("S").WithLocation(11, 31)
Semantics\ExtensionTests.cs (2)
34394
Diagnostic(ErrorCode.
ERR_BadSpecialByRefParameter
, "M").WithArguments("System.Span<int>").WithLocation(5, 27));
36591
Diagnostic(ErrorCode.
ERR_BadSpecialByRefParameter
, "M2").WithArguments("System.Span<int>").WithLocation(9, 27));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\BindingAsyncTests.cs (1)
3223
Diagnostic(ErrorCode.
ERR_BadSpecialByRefParameter
, "tr").WithArguments("System.TypedReference"));
Semantics\LambdaTests.cs (3)
5994
Diagnostic(ErrorCode.
ERR_BadSpecialByRefParameter
, "r").WithArguments("System.TypedReference").WithLocation(10, 39),
5997
Diagnostic(ErrorCode.
ERR_BadSpecialByRefParameter
, "h").WithArguments("System.RuntimeArgumentHandle").WithLocation(11, 46),
6000
Diagnostic(ErrorCode.
ERR_BadSpecialByRefParameter
, "i").WithArguments("System.ArgIterator").WithLocation(12, 36));
Semantics\SpanStackSafetyTests.cs (1)
1307
Diagnostic(ErrorCode.
ERR_BadSpecialByRefParameter
, "arg").WithArguments("System.Span<int>").WithLocation(11, 48)