[Issue 4860] Taking delegates to a member function broken if method is also aliased in from a base class
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 13 14:37:47 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4860
--- Comment #3 from klickverbot <code at klickverbot.at> 2010-09-13 14:37:15 PDT ---
Steven, I am not quite sure if I see why a non-minimal code snippet in a bug
report would be useful, but here you go:
---
import std.stdio;
class Base {
void foo( int i ) {}
void foo( string s ) {}
}
class Derived : Base {
alias Base.foo foo;
override void foo( int i ) {}
}
void main() {
auto d = new Derived();
void delegate( int ) dg = &d.foo;
writefln("dg: (%s, %s)", dg.ptr, dg.funcptr);
}
---
Feel free to reduce that to the above test case again. ;)
--
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