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: nob...@puremagic.com ReportedBy: chang...@gmail.com --- Comment #0 from changlon <chang...@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: -------