Comment #0 by bus_dbugzilla — 2012-07-24T20:14:42Z
static if(true)
version = Foo;
static if(true)
version(Foo) {}
Worked in 2.059, fails to compile on 2.060 beta:
test.d(2): Error: version Foo defined after use
(Note: If you comment out line #3, it still fails, and that's issue #7386, but that's *not* a regression)
Comment #1 by bugzilla — 2012-07-24T20:22:23Z
I'm not so sure that version= declarations embedded inside static if's can ever work reliably.