www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12208] New: Recognize identical scope of nested structs

https://d.puremagic.com/issues/show_bug.cgi?id=12208

           Summary: Recognize identical scope of nested structs
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow gmail.com> 2014-02-20
05:58:17 EET ---
Currently, this code doesn't compile, although I think it should:

//////////////////////////////
struct S1(alias a)
{
    struct S2(alias b)
    {
        void foo()
        {
            a = b;
        }
    }
}

struct Test
{
    int i, j;
    S1!i.S2!j s;
}
//////////////////////////////

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