October 07, 2012
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: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@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: -------
October 27, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8777


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |FIXED


--- Comment #1 from yebblies <yebblies@gmail.com> 2012-10-27 21:21:32 EST ---
https://github.com/D-Programming-Language/dmd/commit/3ecf24992b09fb4dc6bff7ec02d4d071f34eacd7

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------