http://d.puremagic.com/issues/show_bug.cgi?id=7495

           Summary: Scoped imports broken
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: d...@dawgfoto.de


--- Comment #0 from d...@dawgfoto.de 2012-02-13 08:43:01 PST ---
cat > a.d << EOF
module a;
void bar()
{
    import b : foo;
    foo();
}
EOF

cat > b.d << EOF
module b;
void foo()
{
}
EOF

dmd -c a.d

----
Selective imports in local function scope are not visible.

Reference:
https://github.com/D-Programming-Language/d-programming-language.org/blob/59fd17365e9544d285bdb0b3c321ea1d6808218c/module.dd#L366

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

Reply via email to