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

--- Comment #6 from Rainer Schuetze <[email protected]> ---
> Leaving us with rewriting isDir(de) to isDir(de.name). 
> That seems to be the most practical solution.

While feasible in the case of dirEntry (though breaking existing code), it will
not help in the more general case, i.e. you cannot call a template function if
the alias this type matches the constraints, but the struct type does not.

Maybe template argument type deduction should just try the aliased type if the
struct type itself fails. Doesn't this fit with other rules regarding "alias
this"?

--

Reply via email to