6 references to ERR_RefReturnMustHaveIdentityConversion
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
3180Error(diagnostics, ErrorCode.ERR_RefReturnMustHaveIdentityConversion, argument.Syntax, returnType);
Errors\ErrorFacts.cs (1)
1775or ErrorCode.ERR_RefReturnMustHaveIdentityConversion
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
FirstClassSpanTests.cs (3)
4275Diagnostic(ErrorCode.ERR_RefReturnMustHaveIdentityConversion, "arg").WithArguments("System.Span<string>").WithLocation(4, 50), 4278Diagnostic(ErrorCode.ERR_RefReturnMustHaveIdentityConversion, "arg").WithArguments("System.ReadOnlySpan<string>").WithLocation(5, 58), 4281Diagnostic(ErrorCode.ERR_RefReturnMustHaveIdentityConversion, "arg").WithArguments("System.ReadOnlySpan<object>").WithLocation(6, 58));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\RefLocalsAndReturnsTests.cs (1)
4230Diagnostic(ErrorCode.ERR_RefReturnMustHaveIdentityConversion, "i").WithArguments("int").WithLocation(6, 20));