7 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 (5)
CodeGen\CodeGenAsyncIteratorTests.cs (5)
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),
2014
Diagnostic(ErrorCode.
ERR_IteratorMustBeAsync
, "M").WithArguments("C.M(int)", "System.Collections.Generic.IAsyncEnumerator<int>").WithLocation(4, 61),
2215
Diagnostic(ErrorCode.
ERR_IteratorMustBeAsync
, "M").WithArguments("C.M()", "System.Collections.Generic.IAsyncEnumerable<int>").WithLocation(4, 61)
2241
Diagnostic(ErrorCode.
ERR_IteratorMustBeAsync
, "local").WithArguments("local()", "System.Collections.Generic.IAsyncEnumerator<int>").WithLocation(7, 65)