www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12703] New: GET HEAD : final class rejects members

https://issues.dlang.org/show_bug.cgi?id=12703

          Issue ID: 12703
           Summary: GET HEAD : final class rejects members initialization
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: temtaime gmail.com

struct S {
    this(int) {}
}

final class C {
    S s = S(1);
}

Error: variable hello.C.__ctmp1461 final cannot be applied to variable, perhaps
you meant const?

--
May 05 2014