Bug 17433 – [REG 2.071] Nested aggregate imports are not available in outer scope
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-05-25T08:22:00Z
Last change time
2017-05-25T08:58:07Z
Assigned to
nobody
Creator
mihails.strasuns.contractor
Comments
Comment #0 by mihails.strasuns.contractor — 2017-05-25T08:22:44Z
---
$ 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/[email protected] , http://forum.dlang.org/post/[email protected])
Comment #1 by dfj1esp02 — 2017-05-25T08:58:07Z
*** This issue has been marked as a duplicate of issue 17144 ***