[dmd-beta] D 1.074 and 2.059 betas

Walter Bright walter at digitalmars.com
Sun Apr 8 13:32:36 PDT 2012


Fixed.

On 4/4/2012 1:44 PM, Sönke Ludwig wrote:
> 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