Mercurial > projects > dstress
view run/slice_09.d @ 4:1ed6616fe905
extended array tests
author | thomask |
---|---|
date | Sun, 26 Sep 2004 15:54:31 +0000 |
parents | |
children | f87ba6507260 |
line wrap: on
line source
int main(){ bit[] a; a.length=2; a[] = true; assert(a[0]); assert(a[1]); bit[] b; b.length=2; assert(!b[0]); assert(!b[1]); try{ b[1..2] = a[0..1]; }catch(Exception e){ return 0; } assert(0); }