[dmd-beta] D 1.074 and 2.059 betas

Sönke Ludwig sludwig at outerproduct.org
Wed Apr 4 13:44:19 PDT 2012


I've hit another regression:

struct Test {
    static immutable c = Test();
    static if( true ){}
}

when compiled with no options gives

Error: static if conditional cannot be at global scope

Changing to

struct Test {
    static immutable Test c = Test();
    static if( true ){}
}

does not trigger the error.


More information about the dmd-beta mailing list