D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17433 - [REG 2.071] Nested aggregate imports are not available in outer scope
Summary: [REG 2.071] Nested aggregate imports are not available in outer scope
Status: RESOLVED DUPLICATE of issue 17144
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-25 08:22 UTC by Mihails Strasuns
Modified: 2017-05-25 08:58 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 Mihails Strasuns 2017-05-25 08:22:44 UTC
---
$ cat moda.d 
struct Namespace
{
    public import modb;
}

void main ( )
{
    Namespace.foo();
}
$ cat modb.d 
void foo () {}
$ rdmd moda.d 
moda.d(8): Error: no property 'foo' for type 'Namespace', did you mean 'foo'?
Failed: ["dmd", "-v", "-o-", "moda.d", "-I."]
---

Used to work before new symbol lookup system was implemented in 2.071 - and I have explicitly got Walter confirmation that it can be expected to keep working in future (http://forum.dlang.org/post/pmezncogehwjnvjrxwns@forum.dlang.org , http://forum.dlang.org/post/mr33a2$26ut$1@digitalmars.com)
Comment 1 anonymous4 2017-05-25 08:58:07 UTC

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