[Issue 7242] Cannot call base class member function with same name but diff parameters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 7 22:45:59 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7242


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |INVALID


--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2012-01-07 22:45:58 PST ---
This is by design. Overloads are done against functions in the current scope,
not across all accessible scopes.

You can pull the base class functions into the current scope by adding this
line:

   alias A.f f;

to B.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list