In this code
template F1(T)
{
void bar() {}
}
template F2(T)
{
mixin F1!T;
void foo() { bar(); } // F3.bar or F1.bar ?
}
template F3(T)
{
mixin F2!T;
void bar() {} //
}
struct F4(T)
{
mixin F3!T;
}
the specifications don't state which bar() will be called in this case. While an identified mixin allows to call accurately one of the overload the default behavior is not at all specified.
We would expect the manual to explain which rule is followed in this case even if the rule is "no rule".
Comment #1 by robert.schadek — 2024-12-15T15:23:55Z