[Issue 4058] Wrong error message with __traits(getMember
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 1 19:44:48 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4058
--- Comment #2 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list