[Issue 7653] remove "function literals cannot be class members" annoyance
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 3 06:08:27 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=7653
--- Comment #2 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-02-03 16:08:25 EET ---
Sorry, that's not right. I forgot the parens.
enum x = { return 5; }(); // allowed
struct S
{
enum y = { return 5; }(); // forbidden
}
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list