Bug 5858 – Import not acctept const string as arguments
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-04-18T17:48:00Z
Last change time
2011-04-23T15:51:12Z
Assigned to
nobody
Creator
changlon
Comments
Comment #0 by changlon — 2011-04-18T17:48:18Z
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)