Comment #0 by dlang-bugzilla — 2014-03-02T11:10:49Z
//////////// test.d ///////////
class A { int i; }
class B : A { int j; }
template copy(alias a, alias b)
{
void copy() { a = b; }
}
class C : B
{
alias copyIJ = copy!(i, j);
}
///////////////////////////////
Error:
test.d(11): Error: template instance copy!(i, j) copy!(i, j) is nested in both A and B
The template should be nested in the descendant type.
Comment #1 by dlang-bugzilla — 2014-03-02T12:31:41Z