view tests/mini/delegate.d @ 633:d208fc4291df

merge
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 01 Oct 2008 23:17:36 +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);
}