changeset 205:e3c5b1e6f4a3

Tyro <ridimz_at@yahoo.dot.com> 2004-12-28 news:cq2g95$2n45$1@digitaldaemon.com nntp://digitalmars.com/digitalmars.D.bugs/2581
author thomask
date Sun, 19 Dec 2004 11:42:38 +0000
parents fcaf1782c71d
children f9a6743fd8e9
files nocompile/associative_array_05.d
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nocompile/associative_array_05.d	Sun Dec 19 11:42:38 2004 +0000
@@ -0,0 +1,17 @@
+// @author@	Anders F Björklund <afb@algonet.se>
+// @date@	2004-12-19
+// @uri@	news://cq2h5u$2n99$1@digitaldaemon.com
+// @url@	nntp://digitalmars.com/digitalmars.D/13868
+
+module dstress.nocompile.associative_array_05;
+
+int main(){
+	int[char[]] array;
+	assert(array.length==0);
+	array["eins"]=1;
+	assert(array.length==1);
+	array["zwei"];
+	assert(array.length==1);
+	return 0;
+}
+