http://d.puremagic.com/issues/show_bug.cgi?id=7242
Summary: Cannot call base class member function with same name
but diff parameters
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Taco <[email protected]> 2012-01-07 03:37:35 PST ---
class A
{
public:
void f(int i)
{
}
}
class B: A
{
public:
void f()
{
}
}
int main()
{
B b = new B;
b.f(1);
}
Error: function main.B.f () is not callable using argument types (int)
Error: expected 0 arguments, not 1 for non-variadic function type void()
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------