14 references to ERR_AnonDelegateCantUseLocal
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
2104
Error(diagnostics, ErrorCode.
ERR_AnonDelegateCantUseLocal
, node, localSymbol);
Errors\ErrorFacts.cs (1)
1797
or ErrorCode.
ERR_AnonDelegateCantUseLocal
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
RefStructInterfacesTests.cs (2)
26183
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "r2").WithArguments("r2").WithLocation(14, 24),
26186
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "t2").WithArguments("t2").WithLocation(15, 24)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\RefLocalsAndReturnsTests.cs (8)
40
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "rx").WithArguments("rx").WithLocation(10, 42));
1171
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "x").WithArguments("x").WithLocation(10, 21));
1212
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "x").WithArguments("x").WithLocation(9, 21));
2730
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "r").WithArguments("r").WithLocation(16, 54),
2733
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "r").WithArguments("r").WithLocation(17, 46),
3786
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "rl").WithArguments("rl").WithLocation(13, 41),
3789
Diagnostic(ErrorCode.
ERR_AnonDelegateCantUseLocal
, "rl").WithArguments("rl").WithLocation(14, 25),
3792
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)