https://d.puremagic.com/issues/show_bug.cgi?id=7653
Vladimir Panteleev <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Severity|normal |enhancement --- Comment #1 from Vladimir Panteleev <[email protected]> 2014-02-03 15:58:53 EET --- Another test case: enum x = { return 5; }; // allowed struct S { enum y = { return 5; }; // forbidden } Looking at the compiler code and its history, it looks like an artificial limitation left in the code from ancient times (dmd 0.90). -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
