class A
{
void bar() {}
void connect()
{
alias Tuple!(__traits(getOverloads, typeof(this), "bar")) overloads;
}
}
Error: variable this cannot be read at compile time.
Another test case:
template Tuple(A...)
{
alias A Tuple;
}
struct A
{
void foo() {}
void connect()
{
alias Tuple!(__traits(getOverloads, typeof(this), "foo")) overloads;
}
}
Error: template instance test.Tuple!(this.foo) error instantiating
Should http://d.puremagic.com/issues/show_bug.cgi?id=8972 be marked as duplicate of this?
Comment #4 by github-bugzilla — 2012-11-07T15:23:15Z