Mercurial > projects > ldc
view tests/mini/terms.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 terms; void f() { int i = 42; if (i > 25) return; if (i < 25) { return; } if (i > 100) return; else return; if (i < 1000) { return; } else { return; } } void main() { int i = 42; if (i > 25) return; if (i < 25) { return; } if (i > 100) return; else return; if (i < 1000) { return; } else { return; } }