Bug 7495 – Scoped imports broken

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-13T08:43:00Z
Last change time
2012-02-13T09:38:05Z
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2012-02-13T08:43:01Z
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 by code — 2012-02-13T09:38:05Z
*** This issue has been marked as a duplicate of issue 7494 ***