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;