https://issues.dlang.org/show_bug.cgi?id=14740
--- Comment #2 from [email protected] --- (In reply to Kenji Hara from comment #1) > (In reply to Mihail.K from comment #0) > > __traits(allMembers) returns an additional non-existent member named 'this' > > for types declared inside of functions. > > That's actually exists. It's an instance field which implicitly inserted by > compiler, in order to capture the outer context of nested structs and > classes. Well, it's not accessible in any way, and trying to reference it through the getMember trait fails. It should either not be returned in the list, or should be accessible. As it is, all it does is cause a compiler error, unless you add special handling for that specific case. --
