4 references to ERR_BadSpecialByRefIterator
Microsoft.CodeAnalysis.CSharp (2)
Binder\ForEachLoopBinder.cs (1)
508
diagnostics.Add(ErrorCode.
ERR_BadSpecialByRefIterator
, foreachKeyword.GetLocation(), getEnumeratorType);
Errors\ErrorFacts.cs (1)
1800
case ErrorCode.
ERR_BadSpecialByRefIterator
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\SpanStackSafetyTests.cs (2)
812
Diagnostic(ErrorCode.
ERR_BadSpecialByRefIterator
, "foreach").WithArguments("C1.S1").WithLocation(15, 9)
884
Diagnostic(ErrorCode.
ERR_BadSpecialByRefIterator
, "foreach").WithArguments("C1.S1").WithLocation(33, 9)