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: [email protected]
          Reporter: [email protected]

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?

--

Reply via email to