http://d.puremagic.com/issues/show_bug.cgi?id=7622
Summary: Qualified imports inside functions don't work for real Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2012-03-01 14:19:31 PST --- This is almost a regression, this used to work, for a short time. In DMD 2.059head this compiles with no errors, so it looks like qualified imports are allowed inside functions: void main() { import std.stdio: writeln; } But it seems you can't use them: void main() { import std.stdio: writeln; writeln("hello"); } test.d(3): Error: 'writeln' is not defined, perhaps you need to import std.stdio; ? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------