[Issue 10505] New: anonymous enum members cannot have different types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 29 12:07:19 PDT 2013


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

           Summary: anonymous enum members cannot have different types
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: henning at still-hidden.de


--- Comment #0 from Henning Pohl <henning at still-hidden.de> 2013-06-29 12:07:18 PDT ---
enum {
    a = true,
    b = 10.0f
}

---
main.d(3): Error: cannot implicitly convert expression (10.0000) of type float
to bool
---

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