[Issue 20091] nogc callback inferred as non-nogc

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 29 23:21:16 UTC 2019


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

--- Comment #1 from Ali Ak <ali.akhtarzada at gmail.com> ---
f's instantiation with untyped lambda:

f!(W!int)
{
        auto pure nothrow @safe string f(ref W!int value)
        {
                return (void*[2] __this3 = null;) , value.hook();
        }

}

With typed lambda:

f!(W!int)
{
        auto pure nothrow @nogc @safe string f(ref W!int value)
        {
                return value.hook();
        }

}

--


More information about the Digitalmars-d-bugs mailing list