http://d.puremagic.com/issues/show_bug.cgi?id=7809
Summary: __traits(getMember can be used with a type although the spec says it cannot Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: websites AssignedTo: nob...@puremagic.com ReportedBy: simend...@gmail.com --- Comment #0 from simendsjo <simend...@gmail.com> 2012-04-02 03:07:54 PDT --- struct S { int i; } is( typeof(__traits(getMember, S, "i")) == int ) // works The spec, on the other hand, says it cannot be used on non-static fields. That's my interpretation. http://dlang.org/traits.html#getMember -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------