www.digitalmars.com         C & C++   DMDScript  

D - [Bug]

The following code crashes the compiler

void main()
{
   A!(int).a(1);
}
template A(T){
   void a(T t){
     switch (T.size)
       //case (Object).size: break; // ok
       case (object).size: break; // chashes here
   }
}
Feb 15 2004