13 references to ERR_MustHaveRefReturn
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Statements.cs (2)
3080: ErrorCode.ERR_MustHaveRefReturn; 3514: ErrorCode.ERR_MustHaveRefReturn;
Errors\ErrorFacts.cs (1)
1774or ErrorCode.ERR_MustHaveRefReturn
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenRefReturnTests.cs (1)
2672Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "o.F()").WithLocation(24, 19)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\ImplicitObjectCreationTests.cs (1)
2285Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").WithLocation(6, 9)
Semantics\InterpolationTests.cs (1)
15018Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").WithLocation(17, 9)
Semantics\LambdaTests.cs (1)
1416Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").WithLocation(18, 13),
Semantics\RawInterpolationTests_Handler.cs (1)
11058Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").WithLocation(17, 9));
Semantics\RefLocalsAndReturnsTests.cs (4)
2682Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").WithLocation(19, 13), 2724Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "c").WithLocation(11, 50), 4262Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").WithLocation(6, 9)); 4281Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").WithLocation(6, 9)
Semantics\TargetTypedDefaultTests.cs (1)
717Diagnostic(ErrorCode.ERR_MustHaveRefReturn, "return").WithLocation(6, 9)