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