https://issues.dlang.org/show_bug.cgi?id=16362

--- Comment #1 from Ketmar Dark <[email protected]> ---
Created attachment 1607
  --> https://issues.dlang.org/attachment.cgi?id=1607&action=edit
fix and test case

this patch fixes the issue by dropping `ref` from foreach args if `.front` is
function, and it doesn't return by reference.

with trivial change this patch can also be used to resolve issue 11934.

--

Reply via email to