https://issues.dlang.org/show_bug.cgi?id=19941
--- Comment #1 from Iain Buclaw <[email protected]> --- Related fail tests: immutable d = 42; immutable b = new a; class a { int c = d; } --- immutable b = new a; immutable d = 42; class a { int c = d; } --- immutable b = new a; class a { int c = d; } immutable d = 42; Swap the order of `class a` and `immutable b` declarations, and compilation succeeds, making this another forward reference bug. --
