[Issue 9743] New: IFTI and polymorphic string literal should support implicit conversion to static array type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 18 01:53:03 PDT 2013


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

           Summary: IFTI and polymorphic string literal should support
                    implicit conversion to static array 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-18 01:52:58 PDT ---
Sample code:

void main()
{
    void testc()(ref immutable char[4] str) { }
    testc("1234");  // works, OK

    void testw()(ref immutable wchar[4] str) { }
    testw("1234");  // 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