[Issue 7495] New: Scoped imports broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 13 08:43:02 PST 2012


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: nobody at puremagic.com
        ReportedBy: dawg at dawgfoto.de


--- Comment #0 from dawg at 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: -------


More information about the Digitalmars-d-bugs mailing list