diff run/associative_array_10.d @ 370:2e7e260384a4

AAs with float index Ben Hinkle <ben.hinkle@gmail.com> 2005-03-25 news:d247b2$mr$1@digitaldaemon.com
author thomask
date Sat, 26 Mar 2005 18:36:04 +0000
parents
children b8c0195059d9
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/associative_array_10.d	Sat Mar 26 18:36:04 2005 +0000
@@ -0,0 +1,17 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Ben Hinkle <ben.hinkle@gmail.com>
+// @date@	2005-03-25
+// @uri@	news:d247b2$mr$1@digitaldaemon.com
+
+module dstress.run.associative_array_10;
+
+int main() {
+	int[real] x;
+	real d=22;
+	x[d] = 44;
+	assert( x[d] == 44 );
+	return 0;
+}
\ No newline at end of file