[Issue 8972] __traits fails in a struct member function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Nov 7 19:19:13 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8972
Max Samukha <samukha at voliacable.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|foreach fails on |__traits fails in a struct
|__traits(getOverloads) in a |member function
|struct member function |
--- Comment #1 from Max Samukha <samukha at voliacable.com> 2012-11-07 19:19:12 PST ---
Changed the title since the bug is not specific to foreach or getOverloads.
Related to http://d.puremagic.com/issues/show_bug.cgi?id=8971
Another test case:
template Tuple(A...)
{
alias A Tuple;
}
struct A
{
void foo() {}
void connect()
{
alias Tuple!(__traits(getOverloads, typeof(this), "foo")) overloads;
}
}
Error: expression this.foo is not a valid template value argument
--
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