Summary: is broken for enums
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos

--- Comment #0 from Andrej Mitrovic <> 2012-04-04 
11:29:28 PDT ---
import std.conv;

enum Tag

void main()
    Tag tag1 = to!Tag("A");   // ok
    Tag tag2 = to!Tag("AB");  // fail

ConvException: Unexpected 'B' when converting from type string to type Tag

It appears if you have an enum field name that begins with another field's name fails to parse it. This is a blocker for me.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to