http://d.puremagic.com/issues/show_bug.cgi?id=9368
Summary: Final swith typedef'ed enum is not properly checked Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: accepts-invalid, pull Severity: normal Priority: P2 Component: DMD AssignedTo: andrej.mitrov...@gmail.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2013-01-22 10:50:04 PST --- enum E { a, b } void main() { typedef E F; F f; final switch (f) { case F.a: } } $ dmd -d test.d > It should error about a missing case. It's due to a typo in SwitchStatement::semantic, a pull is coming shortly. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------