[Issue 8432] New: write needs to print full enum type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 25 06:20:47 PDT 2012


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

           Summary: write needs to print full enum type
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-07-25 06:20:45 PDT ---
enum X { Val }

void main()
{
    string[X] hash;
    hash[X.Val] = "1";
    writeln(hash);

    X[string] hash2;
    hash2["foo"] = X.Val;
    writeln(hash2);
}

Output:
[Val:"1"]
["foo":Val]

This should really be:
[X.Val:"1"]
["foo":X.Val]

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