-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatability between desktop and coreclr for Generic Array Enumeration #11488
Comments
cc/ @jkotas |
Regression from dotnet/coreclr#13157 |
The behavior of The behavior of enumerators throughout the framework is not consistent in this situation, exactly as the documentation says. Some throw exception, some do not. While we may still want to consider fixing this for array enumerator, good code should not be depend on undefined behavior. |
Enumerator fails to throw when calling current after MoveNext returns false
repro:
This code throws on the NETFramework and the coreclr doesn't
Produces this output on NET Framework: (Note the exception is thrown)
and this output on the Coreclr: Note it produces [3,3] when MoveNext returns false
The text was updated successfully, but these errors were encountered: