Mercurial > projects > ldc
view tangotests/mem3.d @ 329:8c1dc3e705da trunk
[svn r350] Fixed incorrect function types for lazy arguments. looks like lazy arguments have never even worked :o well.. now they should.
author | lindquist |
---|---|
date | Fri, 11 Jul 2008 01:34:04 +0200 |
parents | c4c9b4ac021b |
children |
line wrap: on
line source
module tangotests.mem3; void main() { int[] arr; arr ~= [1,2,3]; assert(arr[0] == 1); assert(arr[1] == 2); assert(arr[2] == 3); delete arr; assert(arr is null); }