7 references to ERR_MethodReturnCantBeRefAny
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Lambda.cs (1)
300
diagnostics.Add(ErrorCode.
ERR_MethodReturnCantBeRefAny
, syntax.Location, type);
Errors\ErrorFacts.cs (1)
1259
or ErrorCode.
ERR_MethodReturnCantBeRefAny
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
83
diagnostics.Add(ErrorCode.
ERR_MethodReturnCantBeRefAny
, returnTypeParameter.Location, returnType);
Symbols\Source\LocalFunctionSymbol.cs (1)
284
diagnostics.Add(ErrorCode.
ERR_MethodReturnCantBeRefAny
, returnTypeSyntax.Location, returnType.Type);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
67
diagnostics.Add(ErrorCode.
ERR_MethodReturnCantBeRefAny
, returnTypeSyntax.Location, returnType.Type);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
149
diagnostics.Add(ErrorCode.
ERR_MethodReturnCantBeRefAny
, syntax.ReturnType.Location, returnType.Type);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
259
diagnostics.Add(ErrorCode.
ERR_MethodReturnCantBeRefAny
, returnTypeSyntax.Location, returnType.Type);