[Issue 6272] New: Named import in functions problem
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 8 17:46:32 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6272
Summary: Named import in functions problem
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2011-07-08 17:41:27 PDT ---
This compiles correctly (DMD 2.054 beta):
import std.string: join;
void main() {
string[] a = ["foo", "bar"];
string s = join(a);
}
This too:
void main() {
import std.string;
string[] a = ["foo", "bar"];
string s = join(a);
}
But this:
void main() {
import std.string: join;
string[] a = ["foo", "bar"];
string s = join(a);
}
gives:
temp.d(4): Error: undefined identifier join, did you mean function main?
--
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