5858 – Import not acctept const string as arguments

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5858 - Import not acctept const string as arguments
Summary: Import not acctept const string as arguments
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
Reported: 2011年04月18日 17:48 UTC by changlon
Modified: 2011年04月23日 15:51 UTC (History)
1 user (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description changlon 2011年04月18日 17:48:18 UTC
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)


AltStyle によって変換されたページ (->オリジナル) /