[Issue 16483] ICE in expression.d from typeof

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jan 15 13:56:55 PST 2017


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

b2.temp at gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #1 from b2.temp at gmx.com ---
As a workaround it's possible to mark the free function as "static".
There's a more interesting error message with this similar example:

struct S
{
    enum a = bar!(x=>x)(true);
}

/*static*/ bool bar(alias foo)(bool b)
{
    return foo(b);
} 

--


More information about the Digitalmars-d-bugs mailing list