[Issue 4058] Wrong error message with __traits(getMember
http://d.puremagic.com/issues/show_bug.cgi?id=4058 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Resolution|FIXED |WORKSFORME -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4058] Wrong error message with __traits(getMember
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: ---
[Issue 4058] Wrong error message with __traits(getMember
http://d.puremagic.com/issues/show_bug.cgi?id=4058 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED CC||andrej.mitrov...@gmail.com Resolution||FIXED --- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-10-20 08:48:55 PDT --- It now gives this generic error first: test.d(7): Error: variable m cannot be read at compile time I think that's clearer now. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---