www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - DDoc: "Error: static if conditional cannot be at global scope"

C:\code\d\bugs>type 148_1.d
/**
  *
  */
struct MyStruct(T)
{
     static if( true )
     {
         void f1() {}
     }
}

void main()
{

}
C:\code\d\bugs>dmd -D -o- 148_1.d
148_1.d(6): Error: static if conditional cannot be at global scope

C:\code\d\bugs>
Mar 03 2006