[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:23:33 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4860
--- Comment #1 from klickverbot <code at klickverbot.at> 2010-09-13 14:23:03 PDT ---
Iain pointed out on #d that the example above works if you put the alias
directive *after* the last overload:
---
import std.stdio;
class Base {
void foo() {
}
}
class Derived : Base {
override void foo() {
}
alias Base.foo foo;
}
void main() {
auto d = new Derived();
void delegate() dg = &d.foo;
writefln("dg: (%s, %s)", dg.ptr, dg.funcptr);
}
---
--
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