[Issue 12410] non-parametrized helper function in eponymous template is not inferred

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 19 02:01:28 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12410



--- Comment #1 from monarchdodra at gmail.com 2014-03-19 02:01:14 PDT ---
Actually, it's a bit simpler than that. All it takes is being non eponymous:

template sift(T)
{
    void impl() //Not infered
    {}
}

void main() @safe pure nothrow
{
    sift!int.impl(); //Fails
}

Not sure if bug or enhancement, but I think this should work: "impl" depends on
T.

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


More information about the Digitalmars-d-bugs mailing list