comparison run/a/associative_array_24_B.d @ 1573:81b51faeeefe

[Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD <d@brian.codekitchen.net> 2007-04-27 http://d.puremagic.com/issues/show_bug.cgi?id=1191
author thomask
date Thu, 21 Feb 2008 15:19:08 +0000
parents
children
comparison
equal deleted inserted replaced
1572:169ba9b6cb5d 1573:81b51faeeefe
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ <d@brian.codekitchen.net>
6 // @date@ 2007-04-27
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1191
8 // @desc@ [Issue 1191] New: multidimensional associative array assignment doesn't behave as with DMD
9
10 module dstress.run.a.associative_array_24_B;
11
12 int main(){
13 int stuff[char[]][char[]][char[]];
14 stuff["first"]["second"]["third"] = 5;
15 if(1 != stuff.length){
16 assert(0);
17 }
18 if(1 != stuff["first"].length){
19 assert(0);
20 }
21 if(1 != stuff["first"]["second"].length){
22 assert(0);
23 }
24 if(5 != stuff["first"]["second"]["third"]){
25 assert(0);
26 }
27
28 return 0;
29 }