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

Dennis <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86                         |All
                 OS|Windows                     |All
           Severity|enhancement                 |normal

--- Comment #2 from Dennis <[email protected]> ---
Nevermind, the url shortener was blocked on the network I was on.

Here's the code reduced some more:

```
Lockstep!() lockstep()
{
    return Lockstep!()();
}

struct Lockstep()
{
    int opApply(int delegate(int) callback) @system
    {
        return 0;
    }

    int opApply(int delegate(int) pure nothrow @nogc @safe callback) pure
nothrow @nogc @safe
    {
        return 0;
    }
}

void foo0() 
{
    foreach (x; lockstep()) {} // OK
}

void foo1() 
{
    foreach (x; lockstep()) {} // FAILS
}
```

--

Reply via email to