http://d.puremagic.com/issues/show_bug.cgi?id=8257
Summary: __traits(compiles) gives compile error Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: critical Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: wfunct...@hotmail.com --- Comment #0 from wfunct...@hotmail.com 2012-06-16 19:11:34 PDT --- struct S { static void g() { } } auto f(string m)() { return &__traits(getMember, S.init, m); } // Error: delegates are only for non-static functions static if (__traits(compiles, f!"g"())) { } Marked as critical since there's no real workaround (that I'm aware of)... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------