10 references to ERR_AnonymousMethodToExpressionTree
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
2082conversionError(diagnostics, ErrorCode.ERR_AnonymousMethodToExpressionTree);
Errors\ErrorFacts.cs (1)
1441or ErrorCode.ERR_AnonymousMethodToExpressionTree
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\DelegateTypeTests.cs (7)
643Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate").WithLocation(6, 48), 646Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "(Expression)delegate () { return 2; }").WithLocation(7, 13), 649Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate").WithLocation(8, 30), 652Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "(LambdaExpression)delegate () { return 4; }").WithLocation(9, 13)); 5058Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate").WithLocation(9, 11), 5061Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate").WithLocation(10, 11)); 6261Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate").WithLocation(10, 13)
Semantics\SemanticErrorTests.cs (1)
17578Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate").WithLocation(10, 30));