[Issue 17433] New: [REG 2.071] Nested aggregate imports are not available in outer scope

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu May 25 01:22:44 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17433

          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 at puremagic.com
          Reporter: mihails.strasuns.contractor at sociomantic.com

---
$ 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)

--


More information about the Digitalmars-d-bugs mailing list