Bug or intended?

rsw0x via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Feb 6 06:15:04 PST 2016


I was playing around with alias templates and came across this, I 
reduced it to:

---
struct A(alias C c){

   auto foo(){
     return c.i;
   }
}

struct B{
   C c;
   A!c a;
}

struct C{
   int i;
}
---

It gives me a "need 'this' for 'i' of type 'int'" error.


More information about the Digitalmars-d-learn mailing list