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



--- Comment #1 from klickverbot <c...@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: -------

Reply via email to