[Issue 9837] New: IFTI should consider enum base type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 30 08:30:41 PDT 2013


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

           Summary: IFTI should consider enum base type
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          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-03-30 08:30:40 PDT ---
Test case:

void main()
{
    enum DA : string { a = "foo" }
    DA da;
    string bda = da;  // works
    static assert(is(DA : string));  // works
    void fda1(string a) {}
    void fda2(T)(T[] a) {}
    fda1(da);   // works
    fda2(da);   // should work, but doesn't
}

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