www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7447] New: Alias template within struct/class not visible when struct/class is accessed through an alias

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7447

           Summary: Alias template within struct/class not visible when
                    struct/class is accessed through an alias
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: smjg iname.com



struct Qwert {
    template yuiop(int asdfg) {
        alias Qwert yuiop;
    }
}

void main() {
    alias Qwert Hjkl;
    alias Hjkl.yuiop!(1) Zxcvb;
}
----------
alias_template.d(8): Error: alias alias_template.main.Hjkl template identifier
y
uiop is not a member of alias Hjkl
alias_template.d(8): Error: alias alias_template.main.Hjkl template identifier
y
uiop is not a member of alias Hjkl
alias_template.d(9): Error: no property 'yuiop!(1)' for type 'Qwert'
alias_template.d(9): Error: alias Zxcvb cannot alias an expression __error
----------
DMD 2.057 Win32.

No error in 1.071.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 05 2012
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7447


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED



11:39:30 PST ---
Seems to work in 2.060

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