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

2014-04-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12410

Kenji Hara k.hara...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #2 from Kenji Hara k.hara...@gmail.com ---
This is a dup of 12265. See my comment in its comment#1.

*** This issue has been marked as a duplicate of issue 12265 ***

--


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

2014-03-19 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=12410



--- Comment #1 from monarchdo...@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: ---