[Issue 10142] New: [REG2.063a] enum value semantic problem that	declared in class member
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu May 23 02:29:01 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=10142
           Summary: [REG2.063a] enum value semantic problem that declared
                    in class member
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-05-23 02:28:59 PDT ---
class File
{
    enum Access : ubyte { Read = 0x01 }
    enum Open : ubyte { Exists = 0 }
    enum Share : ubyte { None = 0 }
    enum Cache : ubyte { None = 0x00 }
    struct Style
    {
        Access  access;
        Open    open;
        Share   share;
        Cache   cache;
    }
    enum Style ReadExisting = { Access.Read, Open.Exists };
    this (const(char[]) path, Style style = ReadExisting) {}  // line 99
}
output:
test.d(99): Error: cannot make expression out of initializer for ReadExisting
-- 
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