DDoc: "Error: static if conditional cannot be at global scope"

Sean Kelly sean at f4.ca
Fri Mar 3 11:43:54 PST 2006


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>



More information about the Digitalmars-d-bugs mailing list