view run/typeid_82.d @ 570:32f7f8ce5e51

updated "===" -> "is" and "!==" to "!(...===...)"
author thomask
date Wed, 08 Jun 2005 17:49:15 +0000
parents 98c7b15cc09e
children
line wrap: on
line source

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

module dstress.run.typeid_82;

enum MyEnum{
	A,
	B
}

int main(){
	TypeInfo t1 = typeid(typeof(MyEnum.A));
	assert(!(t1 is null));
	TypeInfo t2 = typeid(MyEnum);
	assert(!(t2 is null));
	assert(t1 is t2);
	return 0;
}