view run/t/typedef_22_B.d @ 1613:70a23cb6a616

Fix incorrect run.t.throw_07_A/B tests
author Christian Kamm <kamm incasoftware de>
date Sun, 10 May 2009 12:10:34 +0200
parents 4756fddca5c4
children
line wrap: on
line source

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

// @author@	Tomas Lindquist Olsen <tomas@famolsen.dk>
// @date@	2007-03-14
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1062
// @desc@	[Issue 1062] Cannot catch typedef'd class

module dstress.run.t.typedef_22_B;

typedef Exception TypedefException;

int main(){
	try{
		throw new TypedefException("foo");
	}catch(TypedefException e){
		return 0;
	}

	assert(0);
}