[dmd-internals] Question: Is this recursive alias declaration?
kenji hara
k.hara.pg at gmail.com
Sat May 14 22:40:57 PDT 2011
It seems to me that following codes are inconsistent.
Do you know what is correct?
----
// code1
// from test/runnable/mixin1.d test24
class A
{
void f(){}
alias f f; // OK
// When f is analyzed on alias declaration, Is this declaration itself
// excluded from overload set A.f?
}
----
// code 2
class A
{
alias B.f f;
}
class B
{
void f(){}
alias A.f f; // recursive alias declaration
// A.f equals to overload set B.f, so this declaration should
exclude itself?
}
----
Kenji
More information about the dmd-internals
mailing list