We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
using System.Collections.Immutable; class EnumeratorDeconstructionTest { struct Data { public int A; public int B; public void Deconstruct(out int a, out int b) { a = A; b = B; } } void Test(ImmutableArray<Data> array) { foreach (var item in array) { var (a, b) = item; Dummy(a); } } void Dummy(int v) { } }
using System.Collections.Immutable; internal class EnumeratorDeconstructionTest { private struct Data { public int A; public int B; public void Deconstruct(out int a, out int b) { a = A; b = B; } } private void Test(ImmutableArray<Data> array) { ImmutableArray<Data>.Enumerator enumerator = array.GetEnumerator(); while (enumerator.MoveNext()) { var (a, _) = (Data)(ref enumerator.Current); Dummy(a); } } private void Dummy(int v) { } }
Tested with ILSpy at commit fd6070d
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Input code
Erroneous output
Details
Tested with ILSpy at commit fd6070d
The text was updated successfully, but these errors were encountered: