[Issue 23923] `this` not captured by lazy expression

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 18 13:58:40 UTC 2023


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

--- Comment #2 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to Vladimir Panteleev from comment #0)
>         lazyFun({
>             virtualFunc();
>         }());

This could simply be:

        lazyFun(virtualFunc());

--


More information about the Digitalmars-d-bugs mailing list