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

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

Foo!null a;
Foo!null b;

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:
------- You are receiving this mail because: -------

Reply via email to