comparison test/bug3.d @ 40:8b0e809563df trunk

[svn r44] Lots of bug fixes. New array literal support New array ~= operator support (for single element) New with statement support More...
author lindquist
date Fri, 19 Oct 2007 07:43:21 +0200
parents 253a5fc4033a
children
comparison
equal deleted inserted replaced
39:fd5e8bbfcb25 40:8b0e809563df
15 void main() 15 void main()
16 { 16 {
17 S s; 17 S s;
18 s.arr = new int[5]; 18 s.arr = new int[5];
19 s.arr[1] = 32; 19 s.arr[1] = 32;
20 assert(s.arr[0] == 0); 20 int i;
21 assert(s.arr[1] == 32); 21 i = s.arr[0];
22 //assert(s.arr[0] == 0);
23 //assert(s.arr[1] == 32);
22 } 24 }