Thread overview
[Issue 21804] Type list (tuple) not expanded in delegate during IFTI
Apr 06, 2021
Vladimir Panteleev
Dec 17, 2022
Iain Buclaw
April 06, 2021
https://issues.dlang.org/show_bug.cgi?id=21804

--- Comment #1 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
Found a really weird workaround:

        fun     ((result) {             }); // OK
        fun     ((result) { result.m(); }); // OK ?????

Looks like we can trick the compiler into doing the right thing by first making a dummy instantiation which does not access `result`.

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
July 13
https://issues.dlang.org/show_bug.cgi?id=21804

Nick Treleaven <nick@geany.org> changed:

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

--- Comment #2 from Nick Treleaven <nick@geany.org> ---
Using:

    fun     ((result) { pragma(msg, typeof(result)); });

The pragma fires twice:

(S)
S

--