[Issue 21804] Type list (tuple) not expanded in delegate during IFTI

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 6 07:36:40 UTC 2021


--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at 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`.


More information about the Digitalmars-d-bugs mailing list