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