[Issue 15897] base class method not seen w/ circular import

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Apr 22 00:18:57 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15897

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|private base functions not  |base class method not seen
                   |callable from base class    |w/ circular import
                   |module without type change  |

--- Comment #6 from Martin Nowak <code at dawg.eu> ---
Interestingly this only fails when compiling both modules or only module b, but
not when only compiling module a.
It also fails w/ a public instead of a private create method, so this is likely
a forward reference issue due to the circular import. At best you resolve the
issue by taking the base class (Animal) as parameter to foo, rather than the
imported derived class (Cat).
Could anyone Digger the commit that introduced the problem?

--


More information about the Digitalmars-d-bugs mailing list