view run/c/catch_08_D.d @ 1600:6d193e241564

Allow for tango math in creal tests.
author Christian Kamm <kamm incasoftware de>
date Sun, 04 Jan 2009 22:25:02 +0100
parents afe5f4bc8f9c
children
line wrap: on
line source

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

// @author@	<pop.atry@gmail.com>
// @date@	2007-10-07
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=1595
// @desc@	[Issue 1595] Multiple typedefs of Exception should be treated as different types.

module dstress.run.c.catch_08_D;

class Base{
}

typedef Base Cat;
typedef Base Dog;

int main(){
	try{
		throw new Cat();
	}catch(Dog d){
		assert(0);
	}catch(Cat c){
		return 0;
	}
	assert(0);
}