>I get the same results with if(1)

In runtime? If you simple run unittests after `if(1)` you'll get the same result. You need to write result value to variable instead of enum to force runtime computation.

>My compiler is dmd master.

Different versions of windows? Sounds silly, yes.