[Issue 10144] New: Using enum inside final class occurs weird errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 23 03:00:39 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10144
Summary: Using enum inside final class occurs weird errors
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-05-23 03:00:38 PDT ---
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
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list