Mercurial > projects > ldc
view test/aa4.d @ 129:8096ba7082db trunk
[svn r133] Fixed some problems with inlining not happening :P
Fixed problems with certain cases of deeply nested classes/functions.
author | lindquist |
---|---|
date | Fri, 28 Dec 2007 22:55:24 +0100 |
parents | 5ab8e92611f9 |
children |
line wrap: on
line source
module aa4; void main() { int[int] aa; aa = addkey(aa,42,12); int* p = haskey(aa,42); assert(p && *p == 12); } int[int] addkey(int[int] aa, int key, int val) { aa[key] = val; return aa; } int* haskey(int[int] aa, int key) { return key in aa; }