Bug 12703 – GIT HEAD : final class rejects members initialization
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-05-05T16:15:00Z
Last change time
2014-05-28T02:58:18Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
temtaime
Comments
Comment #0 by temtaime — 2014-05-05T16:15:59Z
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?