[Issue 12208] New: Recognize identical scope of nested structs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 19 19:58:22 PST 2014


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 at puremagic.com
        ReportedBy: thecybershadow at gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow at 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: -------


More information about the Digitalmars-d-bugs mailing list