http://d.puremagic.com/issues/show_bug.cgi?id=7123



--- Comment #1 from Kenji Hara <k.hara...@gmail.com> 2011-12-17 04:12:01 PST ---
Reduced test case:

private struct DelegateFaker(F)
{
    template GeneratingPolicy() {}
    enum WITH_BASE_CLASS = __traits(hasMember, GeneratingPolicy!(), "x");
}
auto toDelegate(F)(F fp)
{
    alias DelegateFaker!F Faker;
}
void main()
{
    version(pass)
    {
        pragma(msg, typeof(toDelegate(&main)));
        static assert(is(typeof(toDelegate(&main))));
    }
    else
    {
        static assert(is(typeof(toDelegate(&main))));
    }
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to