www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17433] New: [REG 2.071] Nested aggregate imports are not


          Issue ID: 17433
           Summary: [REG 2.071] Nested aggregate imports are not available
                    in outer scope
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: mihails.strasuns.contractor sociomantic.com

$ cat moda.d 
struct Namespace
    public import modb;

void main ( )
$ 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)

May 25 2017