[Issue 5858] New: Import not acctept const string as arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 18 17:51:52 PDT 2011


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

           Summary: Import not acctept const string as arguments
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: changlon at gmail.com


--- Comment #0 from changlon <changlon at gmail.com> 2011-04-18 17:48:18 PDT ---
It working on 2.052 rlease,  in the git master branch it throw error .
-----------------------------------------------------
static const string file = "test_file.d" ;
auto da    = import(file);
void main(){}
------------------------------------------------------
test.d(2): Error: file name argument must be a string, not (file)

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