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