http://d.puremagic.com/issues/show_bug.cgi?id=8777
Summary: "final fields" in error messages Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: diagnostic Severity: minor Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2012-10-07 13:27:26 PDT --- This is a correct error message: class Foo { final int[5] bar; this() {} } void main() {} temp.d(2): Error: variable temp.Foo.bar final cannot be applied to variable, perhaps you meant const? This is wrong: class Foo { const int[5] bar; this() {} } void main() {} DMD 2.061alpha: temp.d(3): Error: constructor temp.Foo.this missing initializer for final field bar I suggest to replace it with something like: temp.d(3): Error: constructor temp.Foo.this missing initializer for const field bar -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------