7 references to ERR_AwaitForEachMissingMemberWrongAsync
Microsoft.CodeAnalysis.CSharp (2)
Binder\ForEachLoopBinder.cs (1)
808
(true, true, _) => ErrorCode.
ERR_AwaitForEachMissingMemberWrongAsync
,
Errors\ErrorFacts.cs (1)
1907
or ErrorCode.
ERR_AwaitForEachMissingMemberWrongAsync
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenAwaitForeachTests.cs (3)
1536
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMemberWrongAsync
, "collection").WithArguments("System.Collections.Generic.IEnumerable<int>", "GetAsyncEnumerator").WithLocation(7, 33)
1624
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMemberWrongAsync
, "new C()").WithArguments("C", "GetAsyncEnumerator").WithLocation(6, 33)
6889
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMemberWrongAsync
, @"$"" """).WithArguments("string", "GetAsyncEnumerator").WithLocation(8, 33));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\InlineArrayTests.cs (2)
19371
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMemberWrongAsync
, "GetBuffer()").WithArguments("Buffer4<int>", "GetAsyncEnumerator").WithLocation(6, 32)
19426
Diagnostic(ErrorCode.
ERR_AwaitForEachMissingMemberWrongAsync
, "x").WithArguments("Buffer4<int>", "GetAsyncEnumerator").WithLocation(6, 32)