https://issues.dlang.org/show_bug.cgi?id=12827
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |FIXED --- Comment #3 from [email protected] --- On git HEAD, the first code example now gives a compile error: ------- test.d(4): Deprecation: variable test.Foo!5.Foo.i immutable field with initializer should be static, __gshared, or an enum test.d(4): Error: circular initialization of i test.d(9): Error: template instance test.Foo!5 error instantiating ------- The second example also: ------- test.d(3): Deprecation: variable test.Test.i immutable field with initializer should be static, __gshared, or an enum test.d(3): Error: circular initialization of i ------- Seems the PR has fixed this bug. --
