diff --git a/src/DotRecast.Core/RcImmutableArray.Enumerable.cs b/src/DotRecast.Core/RcImmutableArray.Enumerable.cs index e3b4769..f08b4e6 100644 --- a/src/DotRecast.Core/RcImmutableArray.Enumerable.cs +++ b/src/DotRecast.Core/RcImmutableArray.Enumerable.cs @@ -18,7 +18,7 @@ namespace DotRecast.Core private sealed class EnumeratorObject : IEnumerator { - private static readonly IEnumerator EmptyEnumerator = Create(Empty._array!); + private static readonly IEnumerator EmptyEnumerator = new EnumeratorObject(Empty._array!); private readonly T[] _array; private int _index;