view run/e/enum_41_B.d @ 728:a938b1b6d583

Thomas Kuehne <thomas-dloop@kuehne.cn> 2005-11-04 news:th-92A9AC784C1CE3592F06EC49@birke.kuehne.cn
author thomask
date Sat, 05 Nov 2005 08:29:03 +0000
parents
children 9dcac8d4e97f
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_B;

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

int main(){
	ubyte[] array;
	
	E e = E.B;
	
	array = array ~ e;
	
	assert(array.length==1);
	assert(array[0]==E.B);
	
	return 0;
}