8 references to ERR_IteratorMustBeAsync
Microsoft.CodeAnalysis.CSharp (2)
Binder\ExecutableCodeBinder.cs (1)
163
diagnostics.Add(ErrorCode.
ERR_IteratorMustBeAsync
, errorLocation, iterator, returnType);
Errors\ErrorFacts.cs (1)
1901
or ErrorCode.
ERR_IteratorMustBeAsync
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenAsyncIteratorTests.cs (6)
1016
Diagnostic(ErrorCode.
ERR_IteratorMustBeAsync
, "ReturnAndYieldReturn").WithArguments("C.ReturnAndYieldReturn()", "System.Collections.Generic.IAsyncEnumerable<string>").WithLocation(27, 30),
1076
Diagnostic(ErrorCode.
ERR_IteratorMustBeAsync
, "ReturnAndYieldReturn").WithArguments("ReturnAndYieldReturn()", "System.Collections.Generic.IAsyncEnumerable<string>").WithLocation(30, 34),
1999
Diagnostic(ErrorCode.
ERR_IteratorMustBeAsync
, "M").WithArguments("C.M(int)", "System.Collections.Generic.IAsyncEnumerator<int>").WithLocation(4, 61)
2020
Diagnostic(ErrorCode.
ERR_IteratorMustBeAsync
, "M").WithArguments("C.M(int)", "System.Collections.Generic.IAsyncEnumerable<int>").WithLocation(3, 61));
2187
Diagnostic(ErrorCode.
ERR_IteratorMustBeAsync
, "M").WithArguments("C.M()", "System.Collections.Generic.IAsyncEnumerable<int>").WithLocation(4, 61)
2213
Diagnostic(ErrorCode.
ERR_IteratorMustBeAsync
, "local").WithArguments("local()", "System.Collections.Generic.IAsyncEnumerator<int>").WithLocation(7, 65)