Bug 10144 – Using enum inside final class occurs weird errors
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-23T03:00:00Z
Last change time
2013-05-24T01:47:16Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2013-05-23T03:00:38Z
Test casse:
final class TNFA(char_t)
{
enum Act { don } // line 15
const Act[] action_lookup1 = [ Act.don, ];
}
alias X = TNFA!char; // lien 18
output:
test.d(15): Error: variable test.TNFA!(char).TNFA.don final cannot be applied to variable, perhaps you meant const?
test.d(18): Error: template instance test.TNFA!(char) error instantiating