← Back to index
|
Original Bugzilla link
Bug 6465 – Selective imports don't work from inside a function
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-08-10T11:32:00Z
Last change time
2011-08-10T20:44:07Z
Keywords
rejects-valid
Assigned to
nobody
Creator
dsimcha
Comments
Comment #0
by dsimcha — 2011-08-10T11:32:16Z
///////////////////////////////////////////////// module a; void main() { import b : foo; foo(); } ///////////////////////////////////////////////// module b; void foo() { import std.stdio; writeln("FOO"); } //////////////////////////////////////////////// $ dmd a.d b.d a.d(6): Error: undefined identifier foo
Comment #1
by bearophile_hugs — 2011-08-10T11:49:10Z
Like bug 6272 ?
Comment #2
by dsimcha — 2011-08-10T20:44:07Z
(In reply to comment #1) > Like bug 6272 ? Yes, thanks. Closing as a duplicate. *** This issue has been marked as a duplicate of issue 6272 ***