Skip to content
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

Implement generic methods on arrays #583

Closed
jp2masa opened this issue Feb 21, 2017 · 1 comment
Closed

Implement generic methods on arrays #583

jp2masa opened this issue Feb 21, 2017 · 1 comment

Comments

@jp2masa
Copy link
Member

jp2masa commented Feb 21, 2017

Currently we don't handle generic methods on arrays.
Example:

IEnumerable<string> xEnumerable;
string[] xArray = new string[] { "a", "b", "c" };
xEnumerable = xArray;
xEnumerable.GetEnumerator();

This code won't work, because Array doesn't have an implementation for this method. Array can be used as ICollection<T>, IEnumerable<T> and IList<T>
The implementations for these interfaces are in System.SZArrayHelper, but the compiler needs an implementation that replaces calls to the generic method on arrays with calls to the methods in SZArrayHelper.

@jp2masa
Copy link
Member Author

jp2masa commented Oct 21, 2017

This issue was moved to CosmosOS/IL2CPU#15

@jp2masa jp2masa closed this as completed Oct 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant