Spot the bug in report enumeration

from LINQ
C# 14 / .NET 10 intermediate 4 min 1 issue to find

Find the execution bug in this generated report code.

csharp
using System;
using System.Collections.Generic;
using System.Linq;

IEnumerable<int> orderIds = ReadOrderIds();

Console.WriteLine($"count: {orderIds.Count()}");
Console.WriteLine($"ids: {string.Join(",", orderIds)}");

static IEnumerable<int> ReadOrderIds()
{
    foreach (int id in new[] { 101, 102 })
    {
        Console.WriteLine($"read {id}");
        yield return id;
    }
}
Open in playground
Report an error