view run/e/enum_41_C.d @ 1091:9dcac8d4e97f

post DMD-0.163 review
author thomask
date Fri, 21 Jul 2006 11:15:26 +0000
parents a938b1b6d583
children b8c0195059d9
line wrap: on
line source

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

// @author@	Thomas Kuehne <thomas-dloop@kuehne.cn>
// @date@	2005-11-04
// @uri@	news:th-92A9AC784C1CE3592F06EC49@birke.kuehne.cn

module dstress.run.e.enum_41_C;

enum E : short{
	A = 1,
	B = 2,
	C = 3
}

int main(){
	short[] array;

	E e = E.B;

	array = array ~ e;

	assert(array.length==1);
	assert(array[0]==E.B);

	return 0;
}