D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7495 - Scoped imports broken
Summary: Scoped imports broken
Status: RESOLVED DUPLICATE of issue 7494
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-13 08:43 UTC by Martin Nowak
Modified: 2012-02-13 09:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2012-02-13 08:43:01 UTC
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
Comment 1 Martin Nowak 2012-02-13 09:38:05 UTC

*** This issue has been marked as a duplicate of issue 7494 ***