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

           Summary: Templated struct (instantiated with null) can't access
                    its own members (DMD confused about struct's type)
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: cbkbbej...@mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbej...@mailinator.com> 2012-01-12 
00:49:37 PST ---
struct Foo(string s)
{
    string var;
    void func()
    {
        string local = var;
    }
}

Foo!null a;
Foo!null b;

---------------------------
Result:
test.d(6): Error: this for var needs to be type Foo not type Foo!(null)
---------------------------

Both 'a' and 'b' need to be there to trigger this bug.

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

Reply via email to