[Issue 11173] New: `public` alias to an instantiation of `private` template doesn't work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 5 02:36:18 PDT 2013


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

           Summary: `public` alias to an instantiation of `private`
                    template doesn't work
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: verylonglogin.reg at gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-10-05 13:36:15 MSD ---
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
---

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


More information about the Digitalmars-d-bugs mailing list