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



--- Comment #2 from Kenji Hara <k.hara...@gmail.com> 2012-02-22 04:28:11 PST ---
In dmd2.058, eponymous template hides internal names (fixing bug 4675).
But eponymous overload set isn't still allowed.

Workaround:

template foo( T ) {
    T foox( T t ) {
        return t;
    }
    T foox( T t, T u ) {
        return t + u;
    }
    alias foox foo;  // bundle overloads as eponymous member.
}

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

Reply via email to