12 references to ERR_AnonDelegateCantUseLocal
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
1902
Error(diagnostics, ErrorCode.
ERR_AnonDelegateCantUseLocal
, node, localSymbol);
Errors\ErrorFacts.cs (1)
1735
case ErrorCode.
ERR_AnonDelegateCantUseLocal
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\RefLocalsAndReturnsTests.cs (8)
40
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "rx").WithArguments("rx").WithLocation(10, 42));
1135
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "x").WithArguments("x").WithLocation(10, 21));
1176
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "x").WithArguments("x").WithLocation(9, 21));
2629
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "r").WithArguments("r").WithLocation(16, 54),
2632
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "r").WithArguments("r").WithLocation(17, 46),
3413
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "rl").WithArguments("rl").WithLocation(13, 41),
3416
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "rl").WithArguments("rl").WithLocation(14, 25),
3419
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "rl").WithArguments("rl").WithLocation(15, 47));
Semantics\SpanStackSafetyTests.cs (2)
416
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "x").WithArguments("x").WithLocation(17, 29)
452
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "x").WithArguments("x").WithLocation(10, 33)