Mercurial > projects > ldc
view tests/mini/aa2.d @ 1115:af625ea2d3cf
Call _d_array_bounds when an associative array is indexed with a non-existent
key (unless it's being assigned to). Closes #233.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sat, 14 Mar 2009 01:22:05 +0100 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module aa2; void main() { long[float] aa; long* p = 2.0f in aa; assert(!p); aa[4f] = 23; p = 4f in aa; assert(p); assert(*p == 23); }