b.d: --- private void f(T)() { } alias fi = f!int; --- main.d: --- import b; void main() { fi(); } // Error: function b.f!int.f is not accessible from module main ---
Commit pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/eeaa5f45b84f0bb1e344f763b1dd3959844b6c54 [Workaround] Add Issue 11173 workaround. Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=11173
If it's not defined in the spec it's an enhancement. See also http://d.puremagic.com/issues/show_bug.cgi?id=4533 which asks for the opposite and the newsgroup discussion it links to.
It was made to work for a while, then it was broken again (https://issues.dlang.org/show_bug.cgi?id=21670). But since it's just a deprecation, closing as fixed.