[Issue 12664] @nogc for lazy arguments too

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Apr 27 07:59:28 PDT 2014


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

--- Comment #3 from bearophile_hugs at eml.cc ---
(In reply to bearophile_hugs from comment #2)

> void foo(T)(lazy @nogc x) @nogc {
>     auto r = x();
> }
> void main() {
>     foo(1);
> }

Sorry, I meant to write:

void foo(lazy @nogc x) @nogc {

--


More information about the Digitalmars-d-bugs mailing list