Bug 10151 – final: before enum is now an error.

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-23T09:42:00Z
Last change time
2013-05-24T06:00:23Z
Assigned to
nobody
Creator
deadalnix

Comments

Comment #0 by deadalnix — 2013-05-23T09:42:30Z
final: enum Foo { Bar } Used to compile. Is an error in git master : Error: variable module.Bar final cannot be applied to variable, perhaps you meant const?
Comment #1 by bugzilla — 2013-05-23T14:12:02Z
This does compile with 2.063 beta. Are you working off of the 2.063 branch?
Comment #2 by k.hara.pg — 2013-05-23T18:22:00Z
(In reply to comment #0) > final: > > enum Foo { Bar } > > Used to compile. Is an error in git master : > Error: variable module.Bar final cannot be applied to variable, perhaps you > meant const? (In reply to comment #1) > This does compile with 2.063 beta. Are you working off of the 2.063 branch? The root cause would be same as bug 10144. @deadalnix, could you please give us a complete test case which can reproduce the error?
Comment #3 by deadalnix — 2013-05-24T05:55:00Z
Finally I could reduce the bug to a simple test case. Probably a duplicate of 10144. Testing with updated dmd right now. final: class A(B b) { } enum B { C } A!(B.C) ABC;
Comment #4 by deadalnix — 2013-05-24T06:00:23Z
It is solved in master. Thank you for your work !