Summary: Cannot mixin templated classes with inner classes
           Product: D
           Version: 1.050
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2009-12-16 20:45:19 PST ---
The following does not compile (with -version=broken):

class A(T)
         class B
             T blah() { return t; }

     T t;

mixin A!(int);

int main()
     A!(int) a = new A!(int)();
     return 0;

and gives the errors:

Error: this for t needs to be type A not type test2.A!(int).A
Error: class test2.A!(int).A member t is not accessible
Error: template instance test2.A!(int) error instantiating

However, it does compile if B.blah() is changed to: return this.outer.t

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to