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

Simen Kjaeraas <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Simen Kjaeraas <[email protected]> ---
You're right, I've misidentified the problem. This fails:

void foo(T...)(lazy T args) {
    foreach (e; args) {}
}

unittest {
    int n = 3;
    foo(n++);
    assert(n == 3);
}

Which means the problem is not in the location I thought.

--

Reply via email to