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