[Issue 10530] Initializers inside named enum declarations cannot forward reference other members
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 3 13:24:08 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10530
--- Comment #1 from timon.gehr at gmx.ch 2013-07-03 13:24:07 PDT ---
Actually it might be fine for the second line to be in error, since the
compiler cannot easily figure out the enum base type in the general case when
such a constellation is present.
This should certainly work though:
enum Y : int {foo=bar, bar=0}
--
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