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
Tested with 6.0.0.5559 And the last public working version is 5.0.2.5153. Maybe relate to 7c8458d#diff-1ae3ed7affb1f6f07c828648aa9889d5L283-L289 ?
public void Test1() { IEnumerable<object> outerCapture = null; for (int i = 0; i < 10; i++) { int innerCapture = 0; Action a = (delegate { List<object> list = new List<object>(); ++innerCapture; outerCapture = outerCapture == null ? list : outerCapture.Concat(list); }); a.Invoke(); } }
Failed to convert the last assign in new versions.
public void Test1() { IEnumerable<object> outerCapture = null; for (int i = 0; i < 10; i++) { int innerCapture = 0; ((Action)delegate { List<object> list = new List<object>(); int num = ++innerCapture; + <>c__DisplayClass2_0 <>c__DisplayClass2_; + <>c__DisplayClass2_0 <>c__DisplayClass2_2 = <>c__DisplayClass2_; IEnumerable<object> outerCapture2; if (outerCapture != null) { outerCapture2 = outerCapture.Concat(list); } else { IEnumerable<object> enumerable = list; outerCapture2 = enumerable; } - outerCapture = outerCapture2; + <>c__DisplayClass2_2.outerCapture = outerCapture2; })(); } }
The text was updated successfully, but these errors were encountered:
73e0f7c
Fix icsharpcode#1936: TransformDisplayClassUsage should remove copies…
1393d30
… of display-class references.
No branches or pull requests
Tested with 6.0.0.5559
And the last public working version is 5.0.2.5153. Maybe relate to 7c8458d#diff-1ae3ed7affb1f6f07c828648aa9889d5L283-L289 ?
Test Code
Output
Failed to convert the last assign in new versions.
The text was updated successfully, but these errors were encountered: