10 references to ERR_AnonymousMethodToExpressionTree
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
2037Error(diagnostics, ErrorCode.ERR_AnonymousMethodToExpressionTree, syntax);
Errors\ErrorFacts.cs (1)
1380case ErrorCode.ERR_AnonymousMethodToExpressionTree:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\DelegateTypeTests.cs (7)
643Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate () { return 1; }").WithLocation(6, 48), 646Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "(Expression)delegate () { return 2; }").WithLocation(7, 13), 649Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate () { return 3; }").WithLocation(8, 30), 652Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "(LambdaExpression)delegate () { return 4; }").WithLocation(9, 13)); 3174Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate () { return 0; }").WithLocation(9, 11), 3177Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate () { return string.Empty; }").WithLocation(10, 11)); 4377Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate () { return 1; }").WithLocation(10, 13)
Semantics\SemanticErrorTests.cs (1)
17470Diagnostic(ErrorCode.ERR_AnonymousMethodToExpressionTree, "delegate() { }")