Mercurial > projects > ldc
view test/bug20.d @ 287:00eb2c967c3a trunk
[svn r308] Really fixed multidimensional new expressions. the first length was bad in the resulting slice.
author | lindquist |
---|---|
date | Sat, 21 Jun 2008 05:03:42 +0200 |
parents | d9d5d59873d8 |
children |
line wrap: on
line source
module bug20; extern(C) int printf(char*, ...); void func(void delegate() dg) { dg(); } void main() { int i = 42; void delegate() dg = { i++; }; printf("i = %d\n",i); func(dg); printf("i = %d\n",i); assert(i == 43); }