view tests/mini/delegate.d @ 564:4b1b0d262c9a

merge
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 31 Aug 2008 17:29:52 +0200
parents 8116660902c2
children
line wrap: on
line source

class C { void foo() {} }

void main()
{
  C c = new C;
  void delegate() dlg = &c.foo;

  assert(dlg);
}