May 15, 2011 [dmd-internals] Question: Is this recursive alias declaration? | ||||
---|---|---|---|---|
| ||||
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 |
Copyright © 1999-2021 by the D Language Foundation