[Issue 7746] Error with 'TOK232' declaring enum of anonymous nested class type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 16 01:31:55 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7746
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2013-09-16 01:31:55 PDT ---
In git head, error message is improved.
enum x = new class { int n = 4; };
static assert(x.n == 4);
test.d(1): Error: variable test.x : Unable to initialize enum with class or
pointer to struct. Use static const variable instead.
--
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