http://d.puremagic.com/issues/show_bug.cgi?id=4058
--- Comment #2 from bearophile_h...@eml.cc 2013-01-01 19:44:47 PST --- Now this code: struct Test { void hello() {} } void main() { Test t; string m = "hello"; auto x = __traits(getMember, t, m); // line 7 } Prints: test2.d(7): Error: variable m cannot be read at compile time test2.d(7): Error: string expected as second argument of __traits getMember instead of m I think the second error message should be inhibited, but this situation is acceptable. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------