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