view nocompile/associative_array_05.d @ 1515:516ef5730874

[Issue 1108] Indexing an int[] not evaluatable at compile time Reiner Pope <reiner.pope@gmail.com> 2007-04-07 http://d.puremagic.com/issues/show_bug.cgi?id=1108
author thomask
date Wed, 25 Apr 2007 17:47:00 +0000
parents 52c9e86b6486
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	Anders F Bj�klund <afb@algonet.se>
// @date@	2004-12-19
// @uri@	news://cq2h5u$2n99$1@digitaldaemon.com
// @uri@	nntp://digitalmars.com/digitalmars.D/13868

// __DSTRESS_ELINE__ 19

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;
}