[Issue 15503] New: Namespace lookup not following scoping rules
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jan 2 23:24:36 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15503
Issue ID: 15503
Summary: Namespace lookup not following scoping rules
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
The following should work, according to the scoping rules:
-----------x.d------------
import y;
//struct ns
extern (C++, ns)
{
class X { y.ns.Y a; }
}
----------y.d------------
import x;
//struct ns
extern (C++, ns)
{
class Y { x.ns.X b; }
}
It does work if the struct is used.
--
More information about the Digitalmars-d-bugs
mailing list