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?
Comment #1 by k.hara.pg — 2014-05-05T18:32:08Z
Comment #2 by temtaime — 2014-05-05T19:54:47Z
What pull causes this regression ? The new " fix " seems buggy. Why just not refix previous pull ?
Comment #3 by github-bugzilla — 2014-05-05T19:59:47Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c6a4932a99c6a47f897eeed4b1012325081759f3 fix Issue 12703 - final class rejects members initialization https://github.com/D-Programming-Language/dmd/commit/cf56c8c3b4138f21830d421017fa300ede97fa4b Merge pull request #3528 from 9rnsr/fix12703 [REG2.065] Issue 12703 - final class rejects members initialization