Mercurial > projects > dstress
comparison run/o/opCatAssign_20_B.d @ 1282:75288b41b6c7
[Issue 720] New: bug in array literal parsing with append
Kevin Bealer <kevinbealer@gmail.com>
2006-12-22
http://d.puremagic.com/issues/show_bug.cgi?id=720
author | thomask |
---|---|
date | Tue, 26 Dec 2006 14:21:14 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1281:bb541d535405 | 1282:75288b41b6c7 |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Kevin Bealer <kevinbealer@gmail.com> | |
6 // @date@ 2006-12-22 | |
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=720 | |
8 // @desc@ [Issue 720] New: bug in array literal parsing with append | |
9 | |
10 module dstress.run.o.opCatAssign_20_B; | |
11 | |
12 int main(){ | |
13 int[2][] pos; | |
14 pos ~= [7, 13]; | |
15 | |
16 if(pos.length != 1){ | |
17 assert(0); | |
18 } | |
19 if(pos[0].length != 2){ | |
20 assert(0); | |
21 } | |
22 if(pos[0][0] != 7){ | |
23 assert(0); | |
24 } | |
25 if(pos[0][1] != 13){ | |
26 assert(0); | |
27 } | |
28 | |
29 return 0; | |
30 } |