18 references to ERR_MustNotHaveRefReturn
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Statements.cs (4)
3035diagnostics.Add(ErrorCode.ERR_MustNotHaveRefReturn, syntax.ReturnKeyword.GetLocation()); 3047? ErrorCode.ERR_MustNotHaveRefReturn 3472Error(diagnostics, ErrorCode.ERR_MustNotHaveRefReturn, syntax); 3481? ErrorCode.ERR_MustNotHaveRefReturn
Errors\ErrorFacts.cs (1)
1773or ErrorCode.ERR_MustNotHaveRefReturn
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenAsyncIteratorTests.cs (1)
1792Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").WithLocation(12, 9)
CodeGen\CodeGenRefReadonlyReturnTests.cs (1)
515Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").WithLocation(15, 9)
CodeGen\CodeGenRefReturnTests.cs (1)
2748Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "o.F()").WithLocation(24, 23)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\LambdaTests.cs (7)
1341Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "i").WithLocation(11, 22), 1344Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").WithLocation(12, 20), 1347Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").WithLocation(13, 23)); 1371Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "i").WithLocation(9, 33), 1374Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").WithLocation(10, 27), 1377Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").WithLocation(11, 30)); 1419Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").WithLocation(23, 17));
Semantics\RefLocalsAndReturnsTests.cs (3)
2682Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").WithLocation(14, 13), 2724Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "b").WithLocation(9, 50), 4249Diagnostic(ErrorCode.ERR_MustNotHaveRefReturn, "return").WithLocation(6, 9));