December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=11936

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--
October 06, 2023
https://issues.dlang.org/show_bug.cgi?id=11936

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org

--- Comment #1 from Nick Treleaven <nick@geany.org> ---
Still fails:

    foreach (a; dg1) {}

foreachdelegate.d(6): Error: delegate `dg1(int delegate(int))` is not callable
using argument types `(int delegate(ref int __applyArg0) pure nothrow @nogc
@safe)`
foreachdelegate.d(6):        cannot pass argument `__foreachbody3` of type `int
delegate(ref int __applyArg0) pure nothrow @nogc @safe` to parameter `int
delegate(int)`

However, this works:

    int f(int delegate(int));
    foreach (a; &f) {}

--