Mercurial > projects > ldc
view tests/mini/bug25.d @ 1192:3251ce06c820
Started seperating type resolution from the rest of codegen again, the merge had too many regressions.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 03 Apr 2009 16:34:11 +0200 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module bug25; extern(C) int printf(char*, ...); void main() { int i = 2; delegate { i = i*i; i += i*i; }(); printf("%d\n", i); assert(i == 20); }