www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9400] New: initializing enum T[n] with a single value changes its type to T

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9400

           Summary: initializing enum T[n] with a single value changes its
                    type to T
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: nilsbossung googlemail.com


--- Comment #0 from Nils <nilsbossung googlemail.com> 2013-01-26 01:41:03 PST
---
---
cat > test.d <<CODE
enum int[3] x = 42;
static assert(is(typeof(x) == int[3]));
CODE
dmd -c test.d
---
test.d(2): Error: static assert  (is(int == int[3u])) is false
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 26 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9400


Nils <nilsbossung googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


--- Comment #1 from Nils <nilsbossung googlemail.com> 2013-07-12 18:56:42 PDT
---
apparently fixed in the meantime

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 12 2013