Mercurial > projects > ldc
view tests/mini/delegate2.d @ 1519:6182ceeb336a
LLVM_INSTDIR -> LLVM_INCLUDEDIR fix by d0k.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 29 Jun 2009 21:44:11 +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); }