[Issue 7242] New: 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 03:37:39 PST 2012
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: nobody at puremagic.com
ReportedBy: full.demon at gmail.com
--- Comment #0 from Taco <full.demon at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list