https://issues.dlang.org/show_bug.cgi?id=19920
Issue ID: 19920
Summary: __trait(parent, ...) broken with extern(C++,"ns")
nested in scopes
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
struct Foo
{
extern(C++, "namespace")
{
static void bar();
}
}
alias Alias(alias a) = a;
alias Alias(T) = T;
static assert(is(Alias!(__traits(parent, bar)) == Foo));
somehow passes
static assert(is(Alias!(__traits(parent, Foo.bar)) == Foo));
fails, as does
Foo.bar();
See also https://github.com/dlang/dmd/pull/9912
--