Mercurial > projects > ldc
view tests/mini/delegate2.d @ 1579:819b4f961711
fix newline warning
author | Moritz Warning <moritzwarning@web.de> |
---|---|
date | Wed, 09 Sep 2009 02:03:24 +0200 |
parents | ce95d269bf5a |
children |
line wrap: on
line source
module mini.delegate2; void main() { int foo = 42; int bar() { return foo; } int delegate() dg = &bar; assert(dg() == foo); }