March 01, 2012
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: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@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: -------
April 21, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7622


SomeDude <lovelydear@mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |lovelydear@mailmetrash.com
         Resolution|                            |DUPLICATE


--- Comment #1 from SomeDude <lovelydear@mailmetrash.com> 2012-04-21 06:07:41 PDT ---
*** This issue has been marked as a duplicate of issue 7494 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------