Adjust pattern-based lookup for await foreach
#32111
Labels
4 - In Review
A fix for the issue is submitted for review.
Area-Compilers
Area-Language Design
New Feature - Async Streams
Async Streams
Milestone
Pattern-based 'await foreach' should find 'GetAsyncEnumerator' and 'MoveNextAsync' by binding them with no arguments.
So
GetAsyncEnumerator(params int[] x)
orGetAsyncEnumerator(int optional = 0)
would be recognized, in addition toGetAsyncEnumerator()
andGetAsyncEnumerator(CancellationToken token = default)
.The text was updated successfully, but these errors were encountered: