http://d.puremagic.com/issues/show_bug.cgi?id=9130
Maxim Fomin <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Maxim Fomin <[email protected]> 2012-12-10 06:52:27 PST --- It happens because of invalid usage of traits. If spec is right, getOverloads works with classes and even if it does work with structs, dmd complains "need 'this' for bar type void()" struct S { void bar() { } } void meta(alias m) () { // insert some usage of m here // to force dmd to reject code } void main() { //Error: need 'this' for bar type void() //auto x = __traits(getOverloads, S, "bar")[0]; //But template silently 'eats' erroneous construct meta!(__traits(getOverloads, S, "bar")[0]); } In your code if you comment out "meta!(__traits(getOverloads, S, "bar")[0]);" everything would work fine. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
