Spread elements on spans should use "for-loop" lowering, not GetEnumerator #76664
Labels
Area-Compilers
Code Gen Quality
Room for improvement in the quality of the compiler's generated code
Feature - Collection Expressions
Milestone
Repro: compile and inspect IL on the following: SharpLab
Expected: both use "for-loop" lowering
Actual: "foreach" is lowered as "for", while the spread element uses GetEnumerator/MoveNext.
Originally posted by @RikkiGibson in dotnet/runtime#111093 (comment)
The text was updated successfully, but these errors were encountered: