Mercurial > projects > dstress
view run/s/slice_08.d @ 1541:fe62f80b7ea1
[Issue 1253] DMD 0.175 introduced bug: array initializers as expressions are not allowed?
Oskar Linde <oskar.linde@gmail.com>
2007-06-01
http://d.puremagic.com/issues/show_bug.cgi?id=1253
author | thomask |
---|---|
date | Sun, 01 Jul 2007 13:18:21 +0000 |
parents | 38ea1bb385b6 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.run.s.slice_08; int main(){ bool[] a; a.length=2; a[] = true; assert(a[0]); assert(a[1]); bool[] b; b.length=2; assert(!b[0]); assert(!b[1]); b[0..1] = a[1..2]; assert(b[0]); assert(!b[1]); return 0; }