11 references to ERR_BadRefReturnExpressionTree
Microsoft.CodeAnalysis.CSharp (3)
Errors\ErrorFacts.cs (1)
1717case ErrorCode.ERR_BadRefReturnExpressionTree:
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
563Error(ErrorCode.ERR_BadRefReturnExpressionTree, node); 581Error(ErrorCode.ERR_BadRefReturnExpressionTree, node);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\RefFieldTests.cs (4)
15603Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "(ref int x, scoped ref int y) => ref x").WithLocation(13, 29), 15615Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "(ref int x, ref int y) => ref x").WithLocation(14, 29), 15645Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "(ref int x, scoped ref int y) => ref x").WithLocation(20, 35), 15657Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "(ref int x, ref int y) => ref x").WithLocation(21, 35),
Semantics\RefLocalsAndReturnsTests.cs (4)
2919Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "(y) => ref x").WithLocation(11, 51)); 2942Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "y => ref x").WithLocation(11, 51)); 3967Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "() => ref field").WithLocation(13, 27), 3970Diagnostic(ErrorCode.ERR_BadRefReturnExpressionTree, "(int i) => ref field").WithLocation(14, 27));