12 references to ERR_BadIteratorLocalType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
1174Error(diagnostics, ErrorCode.ERR_BadIteratorLocalType, identifierToken);
Errors\ErrorFacts.cs (1)
1736case ErrorCode.ERR_BadIteratorLocalType:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\ForEachTests.cs (2)
3545Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").WithLocation(18, 26)); 3577Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").WithLocation(18, 35));
Semantics\RefLocalsAndReturnsTests.cs (8)
1235Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").WithLocation(7, 26)); 1266Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").WithLocation(10, 34)); 1291Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").WithLocation(10, 34), 1321Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").WithLocation(10, 43)); 1345Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "x").WithLocation(8, 21)); 3094Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "z").WithLocation(13, 21), 3097Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "y").WithLocation(8, 17)); 3467Diagnostic(ErrorCode.ERR_BadIteratorLocalType, "i").WithLocation(10, 17));