[Issue 7746] New: Error with 'TOK232' declaring enum of anonymous nested class type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 21 08:33:33 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7746

           Summary: Error with 'TOK232' declaring enum of anonymous nested
                    class type
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2012-03-21 08:33:51 PDT ---
enum x = new class { int n = 4; };
static assert(x.n == 4);

bug.d(5): Error: static assert  (TOK232.n == 4) is not evaluatable at compile
time

-- 
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